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