-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(git): git handler class hierarchy (#5967)
* chore: declare internally used methods as private * chore: rename `GitHandler` to `GitSubTreeHandler` To align naming with another components and functions, and to make it more descriptive. * refactor: extract class `AbstractGitHandler` It has the only abstract method `getFiles(...)` that would be implemented by each Git repo scanning mode. * refactor: move `GitSubTreeHandler` impl to a separate file * refactor: replace inheritance with composition Now `GitRepoHandler` extends `AbstractGitHandler` instead of `GitSubTreeHandler`, and contains the latter as a class member to be able to delegate to its `getFiles()` method if necessary. * chore: fix imports * refactor: declare `VcsHandler.name` as readonly * chore: linting * chore: fix imports * refactor: remove unnecessary hack to avoid infinite recursion
- Loading branch information
1 parent
5f76a73
commit 746f038
Showing
9 changed files
with
490 additions
and
446 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.