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
- goimports
# - golint
# - gomnd
- gomnd
- gomodguard
- goprintffuncname
- gosec

View File

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

View File

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