Ignore all resources in .gitignore when scanning #78
Labels
good first issue
Good for newcomers
in: sbm-support-rewrite
Issue is related to the sbm-support-rewrite compionent
type: enhancement
New feature or request
What needs to be done
Contents of
.gitignore
should be ignored when scanning a given application withPathScanner
.Why it needs to be done
Some resources and dirs (like
target
) are ignored by default, this can be configured by settingsbm.ignoredPathsPatterns
. But all ignored resources in.gitignore
should also be ignored.Acceptance Criteria
Given the project to migrate contains a resource
some-file.txt
When the
.gitgnore
containssome-file.txt
Then
PathScanner.scan(Path)
should not return the ignored resource(s)It must handle all kinds of ignore patterns from
.gitignore
.Additional Information
See
sbm.ignoredPathsPatterns
incomponents/sbm-core/src/main/resources/application-core.properties
See
PathScanner
The text was updated successfully, but these errors were encountered: