diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-11-23 10:43:13 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-11-23 10:59:19 +0300 |
commit | 801ae9638800452071dfda5542ab11cc046fcd8b (patch) | |
tree | d417142c660cc6b1c156dbf3187f5b9cc994b44e /.golangci.yml | |
parent | ebd0f47c838101dc61cd6e48b1b25ec7c3b34e9b (diff) |
lint: Move linters and their settings together
Linters and their settings are torn apart by our exclude rules. Let's
move them together to make the settings easier to discover.
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/.golangci.yml b/.golangci.yml index 95bf8ed03..2c3d57ac4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -35,6 +35,13 @@ linters: - varcheck - wastedassign +linters-settings: + depguard: + list-type: blacklist + include-go-root: true + packages-with-error-message: + - io/ioutil: "ioutil is deprecated starting with Go 1.16" + issues: exclude-use-default: false exclude-rules: @@ -84,10 +91,3 @@ issues: max-issues-per-linter: 0 # Maximum count of issues with the same text. Set to 0 to disable. Default is 3. max-same-issues: 0 - -linters-settings: - depguard: - list-type: blacklist - include-go-root: true - packages-with-error-message: - - io/ioutil: "ioutil is deprecated starting with Go 1.16" |