Skip to content

Commit

Permalink
lint:chore - updating golangci with new linters (#135)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Martins <nathan.martins@zup.com.br>
  • Loading branch information
nathanmartinszup authored Dec 17, 2021
1 parent af11e4c commit 1bfb570
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ linters-settings:
min-complexity: 10
goimports:
local-prefixes: github.com/ZupIT/horusec-operator
golint:
min-confidence: 0
gomnd:
settings:
mnd:
Expand All @@ -70,6 +68,7 @@ linters-settings:
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
# @TODO enable require-explanation
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 @@ -93,7 +92,6 @@ linters:
- gocyclo
- gofmt
- goimports
- golint
- gomnd
- goprintffuncname
- gosec
Expand All @@ -115,22 +113,27 @@ linters:
- unused
- varcheck
- whitespace
- gci
- gofumpt
# should enable one by one and fix the lint errors in different pull requests:
# - testpackage
# - wsl
# - nlreturn
# - nestif
# - gocognit
# - errorlint
# - revive

# don't enable:
# - asciicheck
# - scopelint
# - gochecknoglobals
# - gocognit
# - godot
# - godox
# - goerr113
# - interfacer
# - maligned
# - nestif
# - prealloc
# - testpackage
# - revive
# - wsl
# - goerr113

issues:
exclude-rules:
Expand Down

0 comments on commit 1bfb570

Please # to comment.