Skip to content

Commit

Permalink
chore: remove deprecated linters
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchezgavier committed Feb 12, 2024
1 parent dd59c63 commit 8dab14e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
12 changes: 1 addition & 11 deletions golangci-lint-limited/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ linters-settings:
# min-occurrences: 2
gocyclo:
min-complexity: 10
golint:
min-confidence: 0.8
gomnd:
settings:
mnd:
# don't include the "operation" and "assign"
checks: argument,case,condition,return
checks: [argument,case,condition,return]
govet:
check-shadowing: true
settings:
Expand All @@ -30,12 +28,9 @@ linters-settings:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
maligned:
suggest-new: true
misspell:
locale: US
nolintlint:
allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
allow-unused: false # report any unused nolint directives
require-explanation: false # don't require an explanation for nolint directives
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
Expand All @@ -46,7 +41,6 @@ linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
Expand All @@ -62,28 +56,24 @@ linters:
- errorlint #only add if go > 1.13
- gofmt
- goimports
- golint
- gomnd
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- maligned
- misspell
- nestif
- nilerr
- noctx
- prealloc
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace

# don't enable:
Expand Down
12 changes: 1 addition & 11 deletions golangci-lint/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,13 @@ linters-settings:
statements: 50
gci:
local-prefixes: github.com/golangci/golangci-lint
# goconst:
# min-len: 2
# min-occurrences: 2
gocyclo:
min-complexity: 10
golint:
min-confidence: 0.8
gomnd:
settings:
mnd:
# don't include the "operation" and "assign"
checks: argument,case,condition,return
checks: [argument,case,condition,return]
govet:
check-shadowing: true
settings:
Expand All @@ -49,24 +44,20 @@ linters:
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true
enable:
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
# Disabled by default linters
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- cyclop
- deadcode
- depguard
- dogsled
- dupl
Expand Down Expand Up @@ -105,7 +96,6 @@ linters:
- goprintffuncname
- gosec
- grouper
- ifshort
- ireturn
# lll is flagged pretty much on tests only.
#- lll
Expand Down

0 comments on commit 8dab14e

Please sign in to comment.