Skip to content

Commit 461ad12

Browse files
committed
review
1 parent 5f46982 commit 461ad12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/config/base_rule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (b *BaseRule) Validate(minConditionsCount int) error {
5959
}
6060

6161
if nonBlank < minConditionsCount {
62-
return fmt.Errorf("at least %d of (text, source, path[-except], linters) should be set", minConditionsCount)
62+
return fmt.Errorf("at least %d of (text, source, path[-except], linters) should be set", minConditionsCount)
6363
}
6464

6565
return nil

pkg/result/processors/exclusion_paths.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (p *ExclusionPaths) Finish() {
9595
func (p *ExclusionPaths) shouldPassIssue(issue *result.Issue) bool {
9696
for _, pattern := range p.pathPatterns {
9797
if pattern.MatchString(issue.RelativePath) {
98-
p.excludedPathCounter[pattern] += 1
98+
p.excludedPathCounter[pattern]++
9999
return false
100100
}
101101
}
@@ -110,7 +110,7 @@ func (p *ExclusionPaths) shouldPassIssue(issue *result.Issue) bool {
110110
continue
111111
}
112112

113-
p.excludedPathExceptCounter[pattern] += 1
113+
p.excludedPathExceptCounter[pattern]++
114114
matched = true
115115
}
116116

0 commit comments

Comments
 (0)