15eaa15a0e
* Upgrade to the official golangci-lint action and fix some issues it found * Update deps * Remove a shadow warning * Initialize the splitPattern only once * Initial attempt at supporting $GITHUB_ENV Needs some polishing and tests * Now it's actually working * Replace golang.org/x/crypto/ssh/terminal with golang.org/x/term * Disable the issue-228 test again * The linter is picky * Discovered that the workflow/envs.txt had to exist in certain cases * Fix small linter issue
24 lines
358 B
YAML
24 lines
358 B
YAML
run:
|
|
timeout: 3m
|
|
|
|
linters-settings:
|
|
gocyclo:
|
|
# minimal code complexity to report, 30 by default (but we recommend 10-20)
|
|
mi-complexity: 15
|
|
gocritic:
|
|
disabled-checks:
|
|
- ifElseChain
|
|
|
|
linters:
|
|
enable:
|
|
- megacheck
|
|
- govet
|
|
- golint
|
|
- gocyclo
|
|
- gosec
|
|
- unconvert
|
|
- dupl
|
|
- nakedret
|
|
- prealloc
|
|
- scopelint
|
|
- gocritic
|