Repository navigation
No stateless classes - #629
Merged
Merged
Conversation
Broken by rename
Member
Author
|
This is ready for review and it has the potential to create the mother of all merge conflicts so a review would be muuuuch appreciated |
joshaber
approved these changes
Nov 15, 2016
joshaber
left a comment
Contributor
There was a problem hiding this comment.
Thanks for taking this on 💖
| import { LocalGitOperations, Commit, Branch, BranchType } from '../local-git-operations' | ||
| import { GitDiff } from '../git/git-diff' | ||
| import { Branch, BranchType } from '../../models/branch' | ||
| import { Commit } from '../../models/commit' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
mijiang168
pushed a commit
to mijiang168/desktop
that referenced
this pull request
Apr 22, 2022
…esktop#505 desktop#526 desktop#608 desktop#629 desktop#655) Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 22.9.1 to 22.14.13. - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md) - [Commits](electron-userland/electron-builder@v22.9.1...v22.14.13) --- updated-dependencies: - dependency-name: electron-builder dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
mijiang168
pushed a commit
to mijiang168/desktop
that referenced
this pull request
Apr 22, 2022
…esktop#505 desktop#526 desktop#608 desktop#629 desktop#655) Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 22.9.1 to 22.14.13. - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md) - [Commits](electron-userland/electron-builder@v22.9.1...v22.14.13) --- updated-dependencies: - dependency-name: electron-builder dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
yasuking0304
pushed a commit
to yasuking0304/desktop
that referenced
this pull request
Jan 22, 2023
…esktop#505 desktop#526 desktop#608 desktop#629 desktop#655 desktop#695 desktop#729) Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 22.9.1 to 23.1.0. - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md) - [Commits](electron-userland/electron-builder@v22.9.1...v23.1.0) --- updated-dependencies: - dependency-name: electron-builder dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
yasuking0304
pushed a commit
to yasuking0304/desktop
that referenced
this pull request
Jan 22, 2023
…esktop#505 desktop#526 desktop#608 desktop#629 desktop#655 desktop#695 desktop#729) Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 22.9.1 to 23.1.0. - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md) - [Commits](electron-userland/electron-builder@v22.9.1...v23.1.0) --- updated-dependencies: - dependency-name: electron-builder dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
yasuking0304
pushed a commit
to yasuking0304/desktop
that referenced
this pull request
Mar 9, 2023
…esktop#505 desktop#526 desktop#608 desktop#629 desktop#655 desktop#695 desktop#729) Bumps [electron-builder](https://github.com/electron-userland/electron-builder) from 22.9.1 to 23.1.0. - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/CHANGELOG.md) - [Commits](electron-userland/electron-builder@v22.9.1...v23.1.0) --- updated-dependencies: - dependency-name: electron-builder dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR turns on the
no-stateless-classtslint rule, see #590. The, by-far, biggest violator of that rule is theLocalGitOperationsclass so in order to satisfy the rule I've split up LocalGitOperations into individual modules. These modules are tentatively named after the git command the functions within primarily use.I imagine we’ll iterate on the naming and where things live in the future but this gets us going and TBH, I kind of like the layout. It makes it a tad bit trickier to find a method like
getBranchesif you don't know that under the hood that function usesfor-each-refbut I think we can live with it.The only other downside I can think of with this naming scheme is that as we figure out better ways of getting the data we want we might have to move methods around. That pain should be alleviated by the index.ts file though as long as consumers import from that rather than individual files within the git directory.
I've also taken the opportunity to fix all our
Type 'IGitResult' is not assignable to type 'void'errors by converting methods that looked likeinto