Skip to content

Commit

Permalink
chore: adapt golangci config
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Jul 20, 2024
1 parent 7b6d8ab commit 12a13d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ linters:
- inamedparam # reports interfaces with unnamed method parameters
- interfacebloat # check for large interfaces
- intrange # find places where for loops could make use of an integer range
- ireturn # Accept Interfaces, Return Concrete Types.
- lll # check for long lines
- maintidx # measures the maintainability index of each function
- mirror # reports wrong mirror patterns of bytes/strings usage
Expand Down Expand Up @@ -123,6 +122,7 @@ linters:
- mnd # too many detections
- cyclop # covered by gocyclo
- gochecknoglobals # there are many valid reasons for global variables, depending on the project
- ireturn # there are too many exceptions

linters-settings:
wsl:
Expand All @@ -139,6 +139,9 @@ linters-settings:
line-length: 140
tab-width: 1

nlreturn:
block-size: 2

exhaustive:
check-generated: false
default-signifies-exhaustive: true
Expand Down

0 comments on commit 12a13d8

Please sign in to comment.