|
|
|
|
@ -17,13 +17,16 @@ formatters:
|
|
|
|
|
linters:
|
|
|
|
|
default: none
|
|
|
|
|
|
|
|
|
|
# Keep sorted alphabetically
|
|
|
|
|
enable:
|
|
|
|
|
- depguard
|
|
|
|
|
- dupl
|
|
|
|
|
- exhaustive
|
|
|
|
|
- gomodguard
|
|
|
|
|
- govet
|
|
|
|
|
- ineffassign
|
|
|
|
|
- misspell
|
|
|
|
|
- modernize
|
|
|
|
|
- nakedret
|
|
|
|
|
- revive
|
|
|
|
|
- sloglint
|
|
|
|
|
@ -32,7 +35,6 @@ linters:
|
|
|
|
|
- unused
|
|
|
|
|
- usestdlibvars
|
|
|
|
|
- usetesting
|
|
|
|
|
- exhaustive
|
|
|
|
|
|
|
|
|
|
exclusions:
|
|
|
|
|
|
|
|
|
|
@ -44,16 +46,9 @@ linters:
|
|
|
|
|
- legacy
|
|
|
|
|
- std-error-handling
|
|
|
|
|
|
|
|
|
|
rules:
|
|
|
|
|
# This rule is triggered for packages like 'util'. When changes to those packages
|
|
|
|
|
# occur it triggers this rule. This exclusion enables making changes to existing
|
|
|
|
|
# packages.
|
|
|
|
|
- linters:
|
|
|
|
|
- revive
|
|
|
|
|
text: 'var-naming: avoid meaningless package names'
|
|
|
|
|
|
|
|
|
|
warn-unused: true
|
|
|
|
|
|
|
|
|
|
# Keep sorted alphabetically
|
|
|
|
|
settings:
|
|
|
|
|
depguard:
|
|
|
|
|
rules:
|
|
|
|
|
@ -67,6 +62,9 @@ linters:
|
|
|
|
|
dupl:
|
|
|
|
|
threshold: 400
|
|
|
|
|
|
|
|
|
|
exhaustive:
|
|
|
|
|
default-signifies-exhaustive: true
|
|
|
|
|
|
|
|
|
|
gomodguard:
|
|
|
|
|
blocked:
|
|
|
|
|
modules:
|
|
|
|
|
@ -74,8 +72,21 @@ linters:
|
|
|
|
|
recommendations:
|
|
|
|
|
- github.com/evanphx/json-patch/v5
|
|
|
|
|
|
|
|
|
|
exhaustive:
|
|
|
|
|
default-signifies-exhaustive: true
|
|
|
|
|
revive:
|
|
|
|
|
max-open-files: 2048
|
|
|
|
|
enable-default-rules: true
|
|
|
|
|
rules:
|
|
|
|
|
- name: var-naming
|
|
|
|
|
arguments:
|
|
|
|
|
- ["ID"] # AllowList
|
|
|
|
|
- ["VM"] # DenyList
|
|
|
|
|
- - skip-initialism-name-checks: true
|
|
|
|
|
upper-case-const: true
|
|
|
|
|
skip-package-name-checks: true
|
|
|
|
|
skip-package-name-collision-with-go-std: true
|
|
|
|
|
extra-bad-package-names:
|
|
|
|
|
- helpers
|
|
|
|
|
- models
|
|
|
|
|
|
|
|
|
|
run:
|
|
|
|
|
timeout: 10m
|
|
|
|
|
|