diff options
author | Casey Lee <cplee@nektos.com> | 2023-07-11 02:12:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 02:12:12 +0200 |
commit | 724ec918c92c162e537ba879e6d1ccc997f63483 (patch) | |
tree | 0d00d712f92258ed0c6fbf5a4ca45ab9489784b6 /.golangci.yml | |
parent | build(deps): bump golangci/golangci-lint-action from 3.5.0 to 3.6.0 (#1868) (diff) | |
download | forgejo-act-724ec918c92c162e537ba879e6d1ccc997f63483.tar.xz forgejo-act-724ec918c92c162e537ba879e6d1ccc997f63483.zip |
chore: upgrade golangci-lint and address findings (#1904)
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/.golangci.yml b/.golangci.yml index d31aa34..4082864 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -19,17 +19,15 @@ linters-settings: - pkg: 'github.com/stretchr/testify/assert' alias: assert depguard: - list-type: blacklist - include-go-root: true - packages: - - github.com/pkg/errors - - gotest.tools/v3/assert - - log - packages-with-error-message: - - github.com/pkg/errors: 'Please use "errors" package from standard library' - - gotest.tools/v3: 'Please keep tests unified using only github.com/stretchr/testify' - - log: 'Please keep logging unified using only github.com/sirupsen/logrus' - + rules: + main: + deny: + - pkg: github.com/pkg/errors + desc: Please use "errors" package from standard library + - pkg: gotest.tools/v3 + desc: Please keep tests unified using only github.com/stretchr/testify + - pkg: log + desc: Please keep logging unified using only github.com/sirupsen/logrus linters: enable: - megacheck |