mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 05:57:53 +08:00
build: replace deprecated linters deadcode, structcheck and varcheckadd with unused
The three linters deadcode, structcheck and varcheck we have been using are as of gitlabci-lint version 1.49.0 (24 Aug 2022) marked as deprecated, and replaced by unused. The linters staticcheck, gosimple, stylecheck and unused should combined correspond to the checks performed by the stand-alone staticcheck tool, which is by default used for linting in Visual Studio Code with the Go extension. We previously enabled the first three, but skipped unused due to many reported issues. See #6387 for more information.
This commit is contained in:
parent
254c6ef1dd
commit
d6b46e41dd
|
@ -2,19 +2,16 @@
|
|||
|
||||
linters:
|
||||
enable:
|
||||
- deadcode
|
||||
- errcheck
|
||||
- goimports
|
||||
- revive
|
||||
- ineffassign
|
||||
- structcheck
|
||||
- varcheck
|
||||
- govet
|
||||
- unconvert
|
||||
- staticcheck
|
||||
- gosimple
|
||||
- stylecheck
|
||||
#- unused
|
||||
- unused
|
||||
#- prealloc
|
||||
#- maligned
|
||||
disable-all: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user