Fix lint issues: gomnd linter

This commit is contained in:
Chris McGehee 2021-05-21 20:56:55 -07:00 committed by Naveen
parent 05ae13bc18
commit f996065e40
3 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@ linters:
- goheader - goheader
- goimports - goimports
# - golint # - golint
# - gomnd - gomnd
- gomodguard - gomodguard
- goprintffuncname - goprintffuncname
- gosec - gosec

View File

@ -74,7 +74,7 @@ func CheckIfFileExists(checkName string, c *checker.CheckRequest, onFile func(na
return checker.CheckResult{ return checker.CheckResult{
Name: checkName, Name: checkName,
Pass: false, Pass: false,
Confidence: 10, Confidence: checker.MaxResultConfidence,
Error: err, Error: err,
} }
} }

View File

@ -26,6 +26,7 @@ var (
Description: "CPU runtime stats per repo per check", Description: "CPU runtime stats per repo per check",
Measure: CPURuntimeInSec, Measure: CPURuntimeInSec,
TagKeys: []tag.Key{Repo, CheckName}, TagKeys: []tag.Key{Repo, CheckName},
//nolint:gomnd
Aggregation: view.Distribution( Aggregation: view.Distribution(
1<<2, 1<<2,
1<<3, 1<<3,