Skip to content

Commit

Permalink
adapt settings to golangci-lint 1.59.1 (#55)
Browse files Browse the repository at this point in the history
* adapt settings to golangci-lint  1.59.1

* review comment
  • Loading branch information
ldemailly authored Jul 10, 2024
1 parent be20ce8 commit ce25465
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ linters-settings:
max-func-lines: 30
nolintlint:
require-specific: true
# require-explanation: true # add this when we fix it/review nolints in fortio/fortio
whitespace:
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
Expand All @@ -73,6 +74,9 @@ linters:
- musttag
# Deprecated ones:
- gomnd
- execinquery
# Redundant ones:
- gofmt # we use gofumpt
# Weird/bad ones:
- wsl
- nlreturn
Expand All @@ -81,7 +85,6 @@ linters:
- mnd
- testpackage
- wrapcheck
- exhaustivestruct
- tagliatelle
- nonamedreturns
- varnamelen
Expand All @@ -90,7 +93,6 @@ linters:
- paralleltest
- thelper
- forbidigo
- ifshort
- wastedassign
- cyclop
- forcetypeassert
Expand Down

0 comments on commit ce25465

Please sign in to comment.