Skip to content

Commit

Permalink
lint:chore - updating lint config file (ZupIT#811)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Martins <[email protected]>
  • Loading branch information
nathanmartinszup authored Nov 29, 2021
1 parent 3e40b04 commit e9012bd
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: 5
goimports:
local-prefixes: github.com/ZupIT/horusec/
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 e9012bd

Please sign in to comment.