test: fix linter tagalign to respect oCIS custom order + migrate skip-dirs to exclude-dirs (#9062)

This commit is contained in:
Thomas Müller
2024-05-07 08:39:21 +02:00
committed by GitHub
parent 880f39832e
commit d18d835134
+15 -7
View File
@@ -44,8 +44,16 @@ linters:
- depguard # disabled for now. Needs configuration
linters-settings:
tagalign:
align: false
sort: true
order:
- yaml
- env
- desc
- introductionVersion
gocyclo:
min-complexity: 35 # there are some func unforuntately who need this - should we refactor them?
min-complexity: 35 # there are some func unfortunately who need this - should we refactor them?
gomoddirectives:
replace-allow-list:
- github.com/studio-b12/gowebdav
@@ -57,12 +65,6 @@ linters-settings:
severity:
default-severity: error
skip-dirs:
- protogen/gen
- docs
- deployments
- changelog
issues:
exclude-use-default: true
exclude-rules:
@@ -76,6 +78,12 @@ issues:
- EXC0014
- EXC0015
exclude-dirs:
- protogen/gen
- docs
- deployments
- changelog
# Enabled by default linters:
# deadcode: Finds unused code [fast: false, auto-fix: false]
# errcheck: Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: false, auto-fix: false]