Skip to content

Commit d18d835

Browse files
test: fix linter tagalign to respect oCIS custom order + migrate skip-dirs to exclude-dirs (#9062)
1 parent 880f398 commit d18d835

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.golangci.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,16 @@ linters:
4444
- depguard # disabled for now. Needs configuration
4545

4646
linters-settings:
47+
tagalign:
48+
align: false
49+
sort: true
50+
order:
51+
- yaml
52+
- env
53+
- desc
54+
- introductionVersion
4755
gocyclo:
48-
min-complexity: 35 # there are some func unforuntately who need this - should we refactor them?
56+
min-complexity: 35 # there are some func unfortunately who need this - should we refactor them?
4957
gomoddirectives:
5058
replace-allow-list:
5159
- github.com/studio-b12/gowebdav
@@ -57,12 +65,6 @@ linters-settings:
5765
severity:
5866
default-severity: error
5967

60-
skip-dirs:
61-
- protogen/gen
62-
- docs
63-
- deployments
64-
- changelog
65-
6668
issues:
6769
exclude-use-default: true
6870
exclude-rules:
@@ -76,6 +78,12 @@ issues:
7678
- EXC0014
7779
- EXC0015
7880

81+
exclude-dirs:
82+
- protogen/gen
83+
- docs
84+
- deployments
85+
- changelog
86+
7987
# Enabled by default linters:
8088
# deadcode: Finds unused code [fast: false, auto-fix: false]
8189
# 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]

0 commit comments

Comments
 (0)