mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
1.8 KiB
88 lines
1.8 KiB
run: |
|
timeout: 2m |
|
|
|
linters-settings: |
|
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." |
|
gci: |
|
local-prefixes: github.com/dexidp/dex |
|
goimports: |
|
local-prefixes: github.com/dexidp/dex |
|
|
|
|
|
linters: |
|
disable-all: true |
|
enable: |
|
- bodyclose |
|
- deadcode |
|
- depguard |
|
- dogsled |
|
- exhaustive |
|
- exportloopref |
|
- gci |
|
- gochecknoinits |
|
- gocritic |
|
- gofmt |
|
- gofumpt |
|
- goimports |
|
- goprintffuncname |
|
- gosimple |
|
- govet |
|
- ineffassign |
|
- misspell |
|
- nakedret |
|
- nolintlint |
|
- prealloc |
|
- revive |
|
- rowserrcheck |
|
- sqlclosecheck |
|
- staticcheck |
|
- structcheck |
|
- stylecheck |
|
- tparallel |
|
- typecheck |
|
- unconvert |
|
- unparam |
|
- unused |
|
- varcheck |
|
- whitespace |
|
|
|
# TODO: fix linter errors before enabling |
|
# - exhaustivestruct |
|
# - gochecknoglobals |
|
# - errorlint |
|
# - gocognit |
|
# - godot |
|
# - nlreturn |
|
# - noctx |
|
# - wrapcheck |
|
|
|
# TODO: fix linter errors before enabling (from original config) |
|
# - dupl |
|
# - errcheck |
|
# - goconst |
|
# - gocyclo |
|
# - gosec |
|
# - lll |
|
# - scopelint |
|
|
|
# unused |
|
# - goheader |
|
# - gomodguard |
|
|
|
# don't enable: |
|
# - asciicheck |
|
# - funlen |
|
# - godox |
|
# - goerr113 |
|
# - gomnd |
|
# - interfacer |
|
# - maligned |
|
# - nestif |
|
# - testpackage |
|
# - wsl
|
|
|