Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: add staticcheck, gosimple and stylecheck linting to the build pipeline - fixes #6273

albertony8611c9f6f773
diff --git a/.golangci.yml b/.golangci.yml
index 40c6e76d2..d53026863 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -11,6 +11,10 @@ linters:
- varcheck
- govet
- unconvert
+ - staticcheck
+ - gosimple
+ - stylecheck
+ #- unused
#- prealloc
#- maligned
disable-all: true
@@ -42,3 +46,7 @@ linters-settings:
disabled: true
- name: superfluous-else
disabled: true
+ stylecheck:
+ # Only enable the checks performed by the staticcheck stand-alone tool,
+ # as documented here: https://staticcheck.io/docs/configuration/options/#checks
+ checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-ST1023"]