Skip to content

Commit

Permalink
fix: ensure all matching sections are applied
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Jan 7, 2024
1 parent 1938dee commit 29a4450
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/core/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ func NewFile(src string, config *Config) (*File, error) {
checks := make(map[string]bool)
for _, sec := range config.RuleKeys {
if pat, found := config.SecToPat[sec]; found && pat.Match(fp) {
checks = config.SChecks[sec]
for k, v := range config.SChecks[sec] {
checks[k] = v
}
}
}

Expand Down

0 comments on commit 29a4450

Please sign in to comment.