-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make scan --ignore FILENAME
apply to blobs in Git repositories
#17
Comments
This feature could be useful when dealing with scanning monorepos on a per-project basis: #119 |
To implement this today, the most expedient approach:
Some complications:
|
There is also a general oddity or surprising behavior about Nosey Parker's ignore rules. The ignore rules are .gitignore-style rules. The semantics of those rules are that they are relative to the directory that contains the .gitignore file. However, Nosey Parker uses this format to specify global rules: they are not intended to be directory-specific. The end result of this is that, essentially, all Nosey Parker ignore rules have to start with Perhaps the entire path-based ignore mechanism needs some rethinking in Nosey Parker. |
The
scan
command currently has a--ignore FILENAME
option, which allows one to specify a gitignore-style rules files for paths to ignore when scanning. Those ignore rules are only applied to plain files that are scanned, and not blobs found within Git repositories. Those rules should also apply to Git blobs.This is probably dependent on #16 being completed first.
The text was updated successfully, but these errors were encountered: