Add tests for fail_build in case of violation #1836
Annotations
8 errors and 4 warnings
Static-Check:
utils/validations/test_validate_sca.go#L172
ifElseChain: rewrite if-else to switch statement (gocritic)
|
Static-Check:
utils/validations/test_validate_sca.go#L234
ifElseChain: rewrite if-else to switch statement (gocritic)
|
Static-Check:
utils/validations/test_validate_sca.go#L170
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(key, "[*]", "", -1)` (gocritic)
|
Static-Check:
utils/validations/test_validate_sca.go#L169
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(key, "[]", "", -1)` (gocritic)
|
Static-Check:
utils/validations/test_validation.go#L48
commentFormatting: put a space between `//` and comment text (gocritic)
|
Static-Check:
utils/validations/test_validation.go#L50
commentFormatting: put a space between `//` and comment text (gocritic)
|
Static-Check:
utils/validations/test_validate_sca.go#L39
S1002: should omit comparison to bool constant, can be simplified to `params.FailBuild` (gosimple)
|
Static-Check
issues found
|
Spell Check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint macos
Failed to save: uploadChunk (start: 100663296, end: 134217727) failed: read ECONNRESET
|
Go-Sec
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint ubuntu
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|