2019-12-18 19:25:52 +05:30
|
|
|
run:
|
2022-05-20 19:48:04 +05:30
|
|
|
timeout: 4m
|
2020-03-19 14:33:08 +05:30
|
|
|
|
2019-12-18 19:25:52 +05:30
|
|
|
linters-settings:
|
2021-09-17 12:56:47 +05:30
|
|
|
depguard:
|
|
|
|
list-type: blacklist
|
|
|
|
include-go-root: true
|
|
|
|
packages:
|
|
|
|
- io/ioutil
|
|
|
|
packages-with-error-message:
|
|
|
|
- io/ioutil: "The 'io/ioutil' package is deprecated. Use corresponding 'os' or 'io' functions instead."
|
2020-11-04 01:13:59 +05:30
|
|
|
gci:
|
|
|
|
local-prefixes: github.com/dexidp/dex
|
|
|
|
goimports:
|
|
|
|
local-prefixes: github.com/dexidp/dex
|
|
|
|
|
2019-12-18 19:25:52 +05:30
|
|
|
|
|
|
|
linters:
|
2020-11-04 01:13:59 +05:30
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- bodyclose
|
|
|
|
- deadcode
|
2021-09-17 12:56:47 +05:30
|
|
|
- depguard
|
2020-11-04 01:13:59 +05:30
|
|
|
- dogsled
|
|
|
|
- exhaustive
|
|
|
|
- exportloopref
|
2020-11-04 01:19:29 +05:30
|
|
|
- gci
|
2020-11-04 01:13:59 +05:30
|
|
|
- gochecknoinits
|
|
|
|
- gocritic
|
|
|
|
- gofmt
|
2020-11-04 01:19:29 +05:30
|
|
|
- gofumpt
|
2020-11-04 01:13:59 +05:30
|
|
|
- goimports
|
|
|
|
- goprintffuncname
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- misspell
|
|
|
|
- nakedret
|
|
|
|
- nolintlint
|
2021-01-15 20:52:38 +05:30
|
|
|
- prealloc
|
2021-05-27 18:41:12 +05:30
|
|
|
- revive
|
2020-11-04 01:13:59 +05:30
|
|
|
- rowserrcheck
|
2021-01-15 20:52:38 +05:30
|
|
|
- sqlclosecheck
|
2020-11-04 01:13:59 +05:30
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
|
|
|
- stylecheck
|
2020-11-04 01:17:43 +05:30
|
|
|
- tparallel
|
2020-11-04 01:13:59 +05:30
|
|
|
- unconvert
|
2021-01-15 20:52:38 +05:30
|
|
|
- unparam
|
2020-11-04 01:13:59 +05:30
|
|
|
- unused
|
|
|
|
- varcheck
|
|
|
|
- whitespace
|
|
|
|
|
2022-03-16 16:42:26 +05:30
|
|
|
# Disable temporarily until everything works with Go 1.18
|
|
|
|
# - typecheck
|
|
|
|
|
2020-11-04 01:13:59 +05:30
|
|
|
# TODO: fix linter errors before enabling
|
2020-11-04 01:17:43 +05:30
|
|
|
# - exhaustivestruct
|
2020-11-04 01:13:59 +05:30
|
|
|
# - gochecknoglobals
|
2020-11-04 01:17:43 +05:30
|
|
|
# - errorlint
|
2020-11-04 01:13:59 +05:30
|
|
|
# - gocognit
|
|
|
|
# - godot
|
|
|
|
# - nlreturn
|
|
|
|
# - noctx
|
2020-11-04 01:17:43 +05:30
|
|
|
# - wrapcheck
|
2020-11-04 01:13:59 +05:30
|
|
|
|
|
|
|
# TODO: fix linter errors before enabling (from original config)
|
|
|
|
# - dupl
|
|
|
|
# - errcheck
|
|
|
|
# - goconst
|
|
|
|
# - gocyclo
|
|
|
|
# - gosec
|
|
|
|
# - lll
|
|
|
|
# - scopelint
|
|
|
|
|
|
|
|
# unused
|
|
|
|
# - goheader
|
|
|
|
# - gomodguard
|
2019-12-18 19:25:52 +05:30
|
|
|
|
2020-11-04 01:13:59 +05:30
|
|
|
# don't enable:
|
|
|
|
# - asciicheck
|
|
|
|
# - funlen
|
|
|
|
# - godox
|
|
|
|
# - goerr113
|
|
|
|
# - gomnd
|
|
|
|
# - interfacer
|
|
|
|
# - maligned
|
|
|
|
# - nestif
|
|
|
|
# - testpackage
|
|
|
|
# - wsl
|