mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 15:28:05 +03:00
update lint rules
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -29,6 +29,18 @@ linters:
|
|||||||
staticcheck:
|
staticcheck:
|
||||||
checks:
|
checks:
|
||||||
["all", "-QF1003", "-ST1003", "-QF1008", "-QF1006", "-QF1007", "-QF1001", "-ST1020"]
|
["all", "-QF1003", "-ST1003", "-QF1008", "-QF1006", "-QF1007", "-QF1001", "-ST1020"]
|
||||||
|
# https://golangci-lint.run/usage/linters/#revive
|
||||||
|
revive:
|
||||||
|
rules:
|
||||||
|
- name: var-naming
|
||||||
|
severity: warning
|
||||||
|
disabled: true
|
||||||
|
exclude: [""]
|
||||||
|
arguments:
|
||||||
|
- ["ID"] # AllowList
|
||||||
|
- ["VM"] # DenyList
|
||||||
|
- - upper-case-const: true
|
||||||
|
- - skip-package-name-checks: true
|
||||||
exclusions:
|
exclusions:
|
||||||
generated: lax
|
generated: lax
|
||||||
presets:
|
presets:
|
||||||
|
|||||||
Reference in New Issue
Block a user