chore(ci): upgraded linter to 1.53.3 (#3079)

* chore(ci): upgraded linter to 1.53.3

This flagged a bunch of unused parameters, so the PR is larger than
usual, but 99% mechanical.

* separate lint CI task

* run Lint in separate CI
This commit is contained in:
Jarek Kowalski
2023-06-18 13:26:01 -07:00
committed by GitHub
parent 8eb3893738
commit cbc66f936d
103 changed files with 332 additions and 132 deletions

View File

@@ -66,11 +66,11 @@ type cliProgress struct {
progressFlags
}
func (p *cliProgress) HashingFile(fname string) {
func (p *cliProgress) HashingFile(_ string) {
p.inProgressHashing.Add(1)
}
func (p *cliProgress) FinishedHashingFile(fname string, totalSize int64) {
func (p *cliProgress) FinishedHashingFile(_ string, _ int64) {
p.hashedFiles.Add(1)
p.inProgressHashing.Add(-1)
p.maybeOutput()
@@ -98,7 +98,7 @@ func (p *cliProgress) Error(path string, err error, isIgnored bool) {
}
}
func (p *cliProgress) CachedFile(fname string, numBytes int64) {
func (p *cliProgress) CachedFile(_ string, numBytes int64) {
p.cachedBytes.Add(numBytes)
p.cachedFiles.Add(1)
p.maybeOutput()