mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
pretty printing issues
This commit is contained in:
parent
073ad51ed9
commit
5dc876c260
29 changed files with 226 additions and 112 deletions
|
@ -36,16 +36,16 @@ func (p *MaxPerFileFromLinter) Process(issues []result.Issue) ([]result.Issue, e
|
|||
return true
|
||||
}
|
||||
|
||||
lm := p.flc[i.File]
|
||||
lm := p.flc[i.FilePath()]
|
||||
if lm == nil {
|
||||
p.flc[i.File] = linterToCountMap{}
|
||||
p.flc[i.FilePath()] = linterToCountMap{}
|
||||
}
|
||||
count := p.flc[i.File][i.FromLinter]
|
||||
count := p.flc[i.FilePath()][i.FromLinter]
|
||||
if count >= limit {
|
||||
return false
|
||||
}
|
||||
|
||||
p.flc[i.File][i.FromLinter]++
|
||||
p.flc[i.FilePath()][i.FromLinter]++
|
||||
return true
|
||||
}), nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue