diff --git a/.golangci.yml b/.golangci.yml index 601d2a4..38080c6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -45,8 +45,6 @@ linters-settings: min-complexity: 10 goimports: local-prefixes: github.com/ZupIT/horusec-operator - golint: - min-confidence: 0 gomnd: settings: mnd: @@ -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 @@ -93,7 +92,6 @@ linters: - gocyclo - gofmt - goimports - - golint - gomnd - goprintffuncname - gosec @@ -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: