diff options
author | Daniel Baumann <daniel@debian.org> | 2024-10-20 23:07:42 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-11-09 15:38:42 +0100 |
commit | 714c83b2736d7e308bc33c49057952490eb98be2 (patch) | |
tree | 1d9ba7035798368569cd49056f4d596efc908cd8 /.golangci.yml | |
parent | Initial commit. (diff) | |
download | forgejo-act-debian.tar.xz forgejo-act-debian.zip |
Adding upstream version 1.21.4.HEADupstream/1.21.4upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..4082864 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,51 @@ +# Minimum golangci-lint version required: v1.46.0 +run: + timeout: 3m + +skip-dirs: + - report # megalinter results+fixes + +linters-settings: + gocyclo: + # minimal code complexity to report, 30 by default (but we recommend 10-20) + min-complexity: 15 + gocritic: + disabled-checks: + - ifElseChain + importas: + aliases: + - pkg: 'github.com/sirupsen/logrus' + alias: log + - pkg: 'github.com/stretchr/testify/assert' + alias: assert + depguard: + 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 + - govet + - revive + - gocyclo + - gosec + - unconvert + - dupl + - nakedret + - prealloc + - exportloopref + - gocritic + - goimports + - whitespace + - misspell + - depguard + - importas + - contextcheck + - nolintlint + - revive |