mirror of
https://github.com/ossf/scorecard.git
synced 2024-08-15 11:20:30 +03:00
Fix lint issues: gomnd linter
This commit is contained in:
parent
05ae13bc18
commit
f996065e40
@ -29,7 +29,7 @@ linters:
|
||||
- goheader
|
||||
- goimports
|
||||
# - golint
|
||||
# - gomnd
|
||||
- gomnd
|
||||
- gomodguard
|
||||
- goprintffuncname
|
||||
- gosec
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user