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 1cb7b9c commit ac9da50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ linters:
disable:
- decorder # Don't care about this
- dupl # Basically every table driven test ever triggers this
- dupword # Messes with test cases more often than not
- err113 # Out of date
- exhaustruct # No
- exportloopref # Go 1.22+ solves this
Expand Down Expand Up @@ -103,7 +104,7 @@ linters-settings:

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

- name: cyclomatic
disabled: true # cyclop does this
Expand Down Expand Up @@ -132,4 +133,4 @@ linters-settings:
- name: unhandled-error
arguments:
- fmt\.(Fp|P)rint(ln|f)?
- strings.Builder.WriteString
- strings.Builder.Write(String|Byte)?

0 comments on commit ac9da50

Please sign in to comment.