ci(deps): enable testifylint linter on .*_test.go$ (#6688)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2024-05-16 06:29:06 +02:00
committed by GitHub
parent 88702cfd59
commit 9d26ae88d6
61 changed files with 170 additions and 150 deletions

View File

@@ -66,26 +66,35 @@ linters-settings:
ruleguard:
failOn: all
rules: '${configDir}/misc/lint/rules.go'
testifylint:
enable-all: true
disable:
- bool-compare
- expected-actual
- float-compare
- len
- require-error
linters:
disable-all: true
enable:
- unused
- ineffassign
- typecheck
- govet
- revive
- gosec
- unconvert
- goconst
- gocyclo
- gofmt
- misspell
- bodyclose
- gci
- gomodguard
- tenv
- goconst
- gocritic
- gocyclo
- gofmt
- gomodguard
- gosec
- govet
- ineffassign
- misspell
- revive
- tenv
- testifylint
- typecheck
- unconvert
- unused
run:
go: '1.22'
@@ -93,12 +102,24 @@ run:
issues:
exclude-files:
- ".*_mock.go$"
- ".*_test.go$"
- "integration/*"
- "examples/*"
exclude-dirs:
- "pkg/iac/scanners/terraform/parser/funcs" # copies of Terraform functions
exclude-rules:
- path: ".*_test.go$"
linters:
- bodyclose
- gci
- gocritic
- goconst
- gofmt
- gosec
- govet
- ineffassign
- misspell
- tenv
- unused
- linters:
- gosec
text: "G304: Potential file inclusion"