Skip to content

Commit 0be8f1f

Browse files
committed
fix(ci): correct golangci-lint config syntax
- Replace invalid skip-dirs with skip-dirs-use-default - Add path exclusion via issues.exclude-rules - Add output format configuration
1 parent 3ca782f commit 0be8f1f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.golangci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
run:
22
timeout: 5m
33
tests: true
4-
skip-dirs:
5-
- vendor
6-
- docs
7-
- ml
4+
skip-dirs-use-default: true
5+
6+
output:
7+
formats:
8+
- format: colored-line-number
89

910
linters:
1011
enable:
@@ -34,6 +35,9 @@ issues:
3435
linters:
3536
- errcheck
3637
- unused
38+
- path: (vendor|docs|ml)/
39+
linters:
40+
- all
3741
- text: "Error return value is not checked"
3842
linters:
3943
- errcheck

0 commit comments

Comments
 (0)