Skip to content

Commit

Permalink
chore: remove/upgrade deprecated linters (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigilioso committed May 6, 2024
1 parent 615387f commit 2f1cb2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
16 changes: 5 additions & 11 deletions golangci-lint-limited/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,15 @@ linters-settings:
funlen:
lines: 100
statements: 50
gci:
local-prefixes: github.com/golangci/golangci-lint
# goconst:
# min-len: 2
# min-occurrences: 2
gocyclo:
min-complexity: 10
gomnd:
settings:
mnd:
# don't include the "operation" and "assign"
checks: [argument, case, condition, return]
mnd:
# don't include the "operation" and "assign"
checks: [argument, case, condition, return]
govet:
check-shadowing: true
settings:
printf:
funcs:
Expand All @@ -41,7 +36,6 @@ linters:
disable-all: true
enable:
- bodyclose
- deadcode
- dogsled
- dupl
- errcheck
Expand All @@ -52,11 +46,11 @@ linters:
- gocritic
- gocyclo
- gocognit
- goerr113
- err113
- errorlint
- gofmt
- goimports
- gomnd
- mnd
- goprintffuncname
- gosec
- gosimple
Expand Down
17 changes: 5 additions & 12 deletions golangci-lint/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,12 @@ linters-settings:
funlen:
lines: 100
statements: 50
gci:
local-prefixes: github.com/golangci/golangci-lint
gocyclo:
min-complexity: 10
gomnd:
settings:
mnd:
# don't include the "operation" and "assign"
checks: [argument, case, condition, return]
mnd:
# don't include the "operation" and "assign"
checks: [argument, case, condition, return]
govet:
check-shadowing: true
settings:
printf:
funcs:
Expand Down Expand Up @@ -58,7 +53,6 @@ linters:
- containedctx
- contextcheck
- cyclop
- deadcode
# We currently don't want to keep a list of allowed dependencies.
# - depguard
- dogsled
Expand All @@ -67,7 +61,6 @@ linters:
- errcheck
- errname
- errorlint
- execinquery
- exhaustive
# Initializing structs with all fields is nonsense.
# - exhaustruct
Expand All @@ -86,12 +79,12 @@ linters:
- godot
# TODOs are fine.
#- godox
- goerr113
- err113
- gofmt
- gofumpt
- goheader
- goimports
- gomnd
- mnd
# We need replacement to "fix" vulnerability issues.
# - gomoddirectives
- gomodguard
Expand Down

0 comments on commit 2f1cb2f

Please sign in to comment.