Skip to content
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

🐛 Don't use full file paths for issues #351

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cmd/analyzer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ func main() {
)

providers := map[string]provider.InternalProviderClient{}
locations := []string{}

for _, config := range configs {
config.ContextLines = contextLines
Expand All @@ -166,6 +167,9 @@ func main() {
os.Exit(1)
}
}
for _, ind := range config.InitConfig {
locations = append(locations, ind.Location)
}
}

parser := parser.RuleParser{
Expand Down Expand Up @@ -195,7 +199,7 @@ func main() {
}
}

rulesets := eng.RunRules(ctx, ruleSets, selectors...)
rulesets := eng.RunRules(ctx, ruleSets, locations, selectors...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make this a variable on the Engine, something like location prefixes?

eng.Stop()

for _, provider := range needProviders {
Expand Down
Loading
Loading