Skip to content

Commit 2857c78

Browse files
remyleonejremy42
authored andcommitted
chore: update linters (#2850)
1 parent d325307 commit 2857c78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ linters:
3434
- goprintffuncname # Checks that printf-like functions are named with `f` at the end [fast: true, auto-fix: false]
3535
- gosec #(gas): Inspects source code for security problems [fast: false, auto-fix: false]
3636
- gosimple #(megacheck): Linter for Go source code that specializes in simplifying a code [fast: false, auto-fix: false]
37+
- gosmopolitan # Report certain i18n/l10n anti-patterns in your Go codebase [fast: false, auto-fix: false]
3738
- govet #(vet, vetshadow): Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: false, auto-fix: false]
3839
- grouper # An analyzer to analyze expression groups. [fast: true, auto-fix: false]
3940
- importas # Enforces consistent import aliases [fast: false, auto-fix: false]
@@ -81,8 +82,8 @@ linters:
8182
- cyclop # checks function and package cyclomatic complexity [fast: false, auto-fix: false]
8283
- depguard # Go linter that checks if package imports are in a list of acceptable packages [fast: true, auto-fix: false]
8384
- dupl # Tool for code clone detection [fast: true, auto-fix: false]
85+
- err113 # Golang linter to check the errors handling expressions [fast: false, auto-fix: false]
8486
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false]
85-
- execinquery # execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds [fast: false, auto-fix: false]
8687
- exhaustive # check exhaustiveness of enum switch statements [fast: false, auto-fix: false]
8788
- forcetypeassert # finds forced type assertions [fast: true, auto-fix: false]
8889
- funlen # Tool for detection of long functions [fast: true, auto-fix: false]
@@ -91,10 +92,9 @@ linters:
9192
- gocognit # Computes and checks the cognitive complexity of functions [fast: true, auto-fix: false]
9293
- godot # Check if comments end in a period [fast: true, auto-fix: true]
9394
- godox # Tool for detection of FIXME, TODO and other comment keywords [fast: true, auto-fix: false]
94-
- err113 # Golang linter to check the errors handling expressions [fast: false, auto-fix: false]
95-
- gomnd # An analyzer to detect magic numbers. [fast: true, auto-fix: false]
9695
- lll # Reports long lines [fast: true, auto-fix: false]
9796
- maintidx # maintidx measures the maintainability index of each function. [fast: true, auto-fix: false]
97+
- mnd # An analyzer to detect magic numbers. [fast: true, auto-fix: false]
9898
- nestif # Reports deeply nested if statements [fast: true, auto-fix: false]
9999
- nilnil # Checks that there is no simultaneous return of `nil` error and an invalid value. [fast: false, auto-fix: false]
100100
- nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity [fast: true, auto-fix: false]

0 commit comments

Comments
 (0)