Przeglądaj źródła

Fix golangci config: use v2 linters.exclusions.rules syntax

issues.exclude-rules is the v1 schema; golangci-lint v2 moved
exclusion rules to linters.exclusions.rules.
pull/434/head
Alexey Dolotov 1 miesiąc temu
rodzic
commit
667d926f84
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      .golangci.toml

+ 2
- 2
.golangci.toml Wyświetl plik

21
 # ]
21
 # ]
22
 
22
 
23
 # Benchmark and tool code: unchecked Close/Write/Fprintf is fine.
23
 # Benchmark and tool code: unchecked Close/Write/Fprintf is fine.
24
-[[issues.exclude-rules]]
24
+[[linters.exclusions.rules]]
25
 path = 'benchmarks/'
25
 path = 'benchmarks/'
26
 linters = ['errcheck', 'ineffassign']
26
 linters = ['errcheck', 'ineffassign']
27
 
27
 
28
-[[issues.exclude-rules]]
28
+[[linters.exclusions.rules]]
29
 path = '_bench_test\.go$'
29
 path = '_bench_test\.go$'
30
 linters = ['errcheck', 'ineffassign']
30
 linters = ['errcheck', 'ineffassign']

Ładowanie…
Anuluj
Zapisz