mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 22:35:52 +01:00
update lint rules
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
220241849b
commit
d245f4c282
1 changed files with 12 additions and 0 deletions
|
|
@ -29,6 +29,18 @@ linters:
|
|||
staticcheck:
|
||||
checks:
|
||||
["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:
|
||||
generated: lax
|
||||
presets:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue