mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 13:50:04 +00:00
sync with restic settings
This commit is contained in:
parent
512d7e88ee
commit
c3af54dd18
1 changed files with 3 additions and 0 deletions
|
|
@ -3,8 +3,10 @@ linters:
|
||||||
# only enable the linters listed below
|
# only enable the linters listed below
|
||||||
default: none
|
default: none
|
||||||
enable:
|
enable:
|
||||||
|
- asciicheck
|
||||||
# ensure that http response bodies are closed
|
# ensure that http response bodies are closed
|
||||||
- bodyclose
|
- bodyclose
|
||||||
|
- copyloopvar
|
||||||
# make sure all errors returned by functions are handled
|
# make sure all errors returned by functions are handled
|
||||||
- errcheck
|
- errcheck
|
||||||
# examine code and report suspicious constructs, such as Printf calls whose
|
# examine code and report suspicious constructs, such as Printf calls whose
|
||||||
|
|
@ -14,6 +16,7 @@ linters:
|
||||||
- importas
|
- importas
|
||||||
# detect when assignments to existing variables are not used
|
# detect when assignments to existing variables are not used
|
||||||
- ineffassign
|
- ineffassign
|
||||||
|
- nolintlint
|
||||||
# make sure names and comments are used according to the conventions
|
# make sure names and comments are used according to the conventions
|
||||||
- revive
|
- revive
|
||||||
# run static analysis and find errors
|
# run static analysis and find errors
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue