mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 15:27:33 +00:00

# Which Problems Are Solved Not all NPM packages are excluded from go linting. # How the Problems Are Solved Missing exclusions are added. # Additional Context Follows-up on #10331 Co-authored-by: Silvan <27845747+adlerhurst@users.noreply.github.com>
156 lines
2.5 KiB
YAML
156 lines
2.5 KiB
YAML
version: "2"
|
|
run:
|
|
concurrency: 4
|
|
go: "1.24"
|
|
linters:
|
|
enable:
|
|
- asciicheck
|
|
- bodyclose
|
|
- contextcheck
|
|
- errname
|
|
- errorlint
|
|
- exhaustive
|
|
- gocognit
|
|
- gocritic
|
|
- misspell
|
|
- nakedret
|
|
- nolintlint
|
|
- nosprintfhostport
|
|
- rowserrcheck
|
|
- sqlclosecheck
|
|
- unconvert
|
|
- errcheck
|
|
- govet
|
|
- ineffassign
|
|
- staticcheck
|
|
- unused
|
|
- nilnil
|
|
disable:
|
|
- bidichk
|
|
- containedctx
|
|
- cyclop
|
|
- decorder
|
|
- depguard
|
|
- dogsled
|
|
- dupl
|
|
- dupword
|
|
- durationcheck
|
|
- err113
|
|
- errchkjson
|
|
- exhaustruct
|
|
- forbidigo
|
|
- forcetypeassert
|
|
- funlen
|
|
- gochecknoglobals
|
|
- gochecknoinits
|
|
- goconst
|
|
- gocyclo
|
|
- godot
|
|
- godox
|
|
- goheader
|
|
- gomoddirectives
|
|
- gomodguard
|
|
- goprintffuncname
|
|
- gosec
|
|
- grouper
|
|
- importas
|
|
- interfacebloat
|
|
- ireturn
|
|
- lll
|
|
- loggercheck
|
|
- maintidx
|
|
- makezero
|
|
- mnd
|
|
- nestif
|
|
- nilerr
|
|
- nilnil
|
|
- nlreturn
|
|
- noctx
|
|
- nonamedreturns
|
|
- paralleltest
|
|
- prealloc
|
|
- predeclared
|
|
- promlinter
|
|
- reassign
|
|
- revive
|
|
- tagliatelle
|
|
- testableexamples
|
|
- testpackage
|
|
- thelper
|
|
- tparallel
|
|
- unparam
|
|
- usestdlibvars
|
|
- varnamelen
|
|
- wastedassign
|
|
- whitespace
|
|
- wrapcheck
|
|
- wsl
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
paths:
|
|
- .artifacts
|
|
- .backups
|
|
- .codecov
|
|
- .github
|
|
- .keys
|
|
- .vscode
|
|
- build
|
|
- deploy
|
|
- guides
|
|
- internal/api/ui/login/static
|
|
- openapi
|
|
- proto
|
|
- tools
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
- apps
|
|
- packages
|
|
- console
|
|
- docs
|
|
- load-test
|
|
|
|
issues:
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|
|
new-from-rev: main
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
settings:
|
|
gci:
|
|
sections:
|
|
- standard
|
|
- default
|
|
- prefix(github.com/zitadel/zitadel)
|
|
custom-order: true
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- .artifacts
|
|
- .backups
|
|
- .codecov
|
|
- .github
|
|
- .keys
|
|
- .vscode
|
|
- build
|
|
- deploy
|
|
- guides
|
|
- internal/api/ui/login/static
|
|
- openapi
|
|
- proto
|
|
- tools
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
- apps
|
|
- packages
|
|
- console
|
|
- docs
|
|
- load-test
|