Skip to content

Commit

Permalink
ci: Update golangci-lint config to latest (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored May 14, 2024
1 parent db1639f commit fa5b6a1
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
# See https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
run:
tests: true

timeout: 5m

build-tags:
- test_performance

skip-dirs:
- tools
- website
- hack
- charts
- designs

linters:
enable:
- asciicheck
Expand All @@ -34,12 +24,13 @@ linters:
- nilerr
disable:
- prealloc

linters-settings:
gocyclo:
min-complexity: 11
govet:
check-shadowing: true
enable-all: true
disable:
- fieldalignment
revive:
rules:
- name: dot-imports
Expand Down Expand Up @@ -71,6 +62,12 @@ linters-settings:
issues:
fix: true
exclude: ['declaration of "(err|ctx)" shadows declaration at']
exclude-dirs:
- tools
- website
- hack
- charts
- designs
exclude-rules:
- linters:
- goheader
Expand Down

0 comments on commit fa5b6a1

Please sign in to comment.