chore: explicit revive rules #12882
Annotations
11 errors and 1 warning
Check if linter failed
Process completed with exit code 1.
|
Lint:
pkg/oci/artifact.go#L136
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
Lint:
pkg/iac/scanners/helm/parser/vals.go#L111
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
Lint:
pkg/iac/scanners/helm/scanner.go#L106
context-as-argument: context.Context should be the first parameter of a function (revive)
|
Lint:
pkg/misconf/scanner.go#L37
blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
|
Lint:
pkg/fanal/analyzer/analyzer.go#L219
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
Lint:
pkg/fanal/analyzer/analyzer.go#L242
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
Lint:
pkg/fanal/analyzer/os/debian/debian_test.go#L65
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
Lint:
pkg/fanal/analyzer/os/ubuntu/ubuntu_test.go#L51
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
Lint:
pkg/fanal/analyzer/os/amazonlinux/amazonlinux_test.go#L101
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
Lint:
pkg/fanal/analyzer/os/redhatbase/redhatbase_test.go#L51
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading