dex/.golangci.yml

80 lines
1.5 KiB
YAML
Raw Normal View History

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