Updated tools version to 2.0.0
Also removed redundant lint-sanity (govet), and lint-style (gofmt), which are already checked by golangci-lint.
Also changed lint-mod slightly so it reverts any changes it makes go.mod, go.sum, and vendor/.
VOL-2647
Change-Id: Iaf53c43b0926d412f3f980dfb2d5944ff61ffb9c
diff --git a/.golangci.yml b/.golangci.yml
index 2a9336b..42bea42 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -32,18 +32,20 @@
locale: US
linters:
- disable-all: true
+ disable-all: true #TODO: enable default linters
enable:
- - gofmt
- - govet
+ #- gocritic
+ #- gochecknoglobals
+ #- gochecknoinits
- gocyclo
+ - gofmt
- golint
+ - govet
- ineffassign
- misspell
+ #- unparam
run:
- skip-dirs:
- - vendor
modules-download-mode: vendor
issues:
@@ -81,10 +83,3 @@
- "don't use underscores in Go names; method Enable_port"
- "don't use underscores in Go names; method Child_device_lost"
exclude-use-default: false
-
-# golangci.com configuration
-# https://github.com/golangci/golangci/wiki/Configuration
-service:
- golangci-lint-version: 1.17.1 # use the fixed version to not introduce new linters unexpectedly
- prepare:
- - echo "here I can run custom commands, but no preparation needed for this repo"