Repository navigation
Limit filename lint to non-ignored paths - #107
Merged
willmurphyscode merged 2 commits intoJul 7, 2026
Merged
willmurphyscode merged 2 commits into
willmurphyscode merged 2 commits into
Conversation
Previously, if a path under the root dir of a repo using this tool contained a ":", static-analysis would fail even if the path was gitignored or part of a submodule. The submodule case particularly comes up with repos that submodule anchore/vulnerability-match-labels, which has some weird paths, including paths with ":" in them. Instead, use "git ls-files" to list files that are tracker or untracked but not ignored (and thus might be added and committed) so that this lint still protects the repo from accepting files with ":" in the path but doesn't fail on gitignored scratchwork or surprising decisions by submodules. Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
willmurphyscode
force-pushed
the
limit-filename-lint-to-non-ignored
branch
from
July 7, 2026 20:17
12feab9 to
9bfe4f6
Compare
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
spiffcs
approved these changes
Jul 7, 2026
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.
Previously, if a path under the root dir of a repo using this tool contained a ":", static-analysis would fail even if the path was gitignored or part of a submodule. The submodule case particularly comes up with repos that submodule anchore/vulnerability-match-labels, which has some weird paths, including paths with ":" in them.
Instead, use "git ls-files" to list files that are tracker or untracked but not ignored (and thus might be added and committed) so that this lint still protects the repo from accepting files with ":" in the path but doesn't fail on gitignored scratchwork or surprising decisions by submodules.
For example, in grype today
static-analysisonly passes if the vulnerability-match-labels submodule has not be initialized.