Skip to content

Commit

Permalink
don't use full file paths for issues
Browse files Browse the repository at this point in the history
Signed-off-by: Emily McMullan <[email protected]>
  • Loading branch information
eemcmullan committed Oct 6, 2023
1 parent c5852d5 commit a600669
Show file tree
Hide file tree
Showing 6 changed files with 140 additions and 121 deletions.
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...)
eng.Stop()

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

0 comments on commit a600669

Please sign in to comment.