Skip to content

Commit

Permalink
Update rules
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Jan 19, 2025
1 parent 00e5dcb commit 1cb7b9c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ linters:
- varnamelen # Lots of false positives of things that are fine
- wrapcheck # Not every error must be wrapped

issues:
exclude-rules:
- path: _test\.go
linters:
- prealloc # These kinds of optimisations will make no difference to test code

linters-settings:
cyclop:
max-complexity: 20
Expand Down Expand Up @@ -95,6 +101,10 @@ linters-settings:
- name: cognitive-complexity
disabled: true # gocognit does this

- name: comment-spacings
arguments:
- "nolint:" # Doesn't recognise this by default

- name: cyclomatic
disabled: true # cyclop does this

Expand All @@ -104,17 +114,17 @@ linters-settings:
- checkPublicInterface

- name: function-length
disabled: true
disabled: true # Bad proxy for complexity

- name: function-result-limit
arguments:
- 3

- name: import-shadowing
disabled: true
disabled: true # predeclared does this

- name: line-length-limit
disabled: true
disabled: true # gofmt/golines handles this well enough

- name: redefines-builtin-id
disabled: true # predeclared does this
Expand Down

0 comments on commit 1cb7b9c

Please sign in to comment.