mirror of https://github.com/nektos/act
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
# 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
|