Update linter config

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2020-11-03 20:43:59 +01:00
parent ed7b71a190
commit 3841f05ba4
No known key found for this signature in database
GPG key ID: 34CC109EB5ED1C2A

View file

@ -1,45 +1,79 @@
run: run:
timeout: 2m timeout: 2m
linters-settings: linters-settings:
golint: gci:
min-confidence: 0.1 local-prefixes: github.com/dexidp/dex
goimports: goimports:
local-prefixes: github.com/dexidp/dex local-prefixes: github.com/dexidp/dex
golint:
min-confidence: 0
linters: linters:
disable-all: true disable-all: true
enable: enable:
- bodyclose - bodyclose
- deadcode - deadcode
- depguard - dogsled
- dogsled - exhaustive
- gochecknoinits - exportloopref
- gofmt - gochecknoinits
- goimports - gocritic
- golint - gofmt
- gosimple - goimports
- gocritic - golint
- govet - goprintffuncname
- ineffassign - gosimple
- interfacer - govet
- misspell - ineffassign
- nakedret - misspell
- staticcheck - nakedret
- structcheck - nolintlint
- stylecheck - rowserrcheck
- typecheck - staticcheck
- unconvert - structcheck
- unused - stylecheck
- varcheck - typecheck
- whitespace - unconvert
- unused
- varcheck
- whitespace
# TODO: fix linter errors before enabling # TODO: fix linter errors before enabling
# - unparam # - gci
# - scopelint # - gochecknoglobals
# - gosec # - gocognit
# - gocyclo # - godot
# - lll # - gofumpt
# - goconst # - nlreturn
# - errcheck # - noctx
# - dupl # - prealloc
# - sqlclosecheck
# TODO: fix linter errors before enabling (from original config)
# - dupl
# - errcheck
# - goconst
# - gocyclo
# - gosec
# - lll
# - scopelint
# - unparam
# unused
# - depguard
# - goheader
# - gomodguard
# don't enable:
# - asciicheck
# - funlen
# - godox
# - goerr113
# - gomnd
# - interfacer
# - maligned
# - nestif
# - testpackage
# - wsl