cec63488f3
* feat: bump `golangci-lint`, add `super-linter`, replace outdated linter Bump `golangci-lint` version. Add `super-linter` to lint other languages. Go linter is disabled because it's currently broken: https://github.com/github/super-linter/pull/370 Replacing `scopelint` with `exportloopref`: "[runner] The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref." Fixed formatting in `.golangci.yml` Add addtional linters: `misspell`: purely style, detects typos in comments `whitespace`: detects leading and trailing whitespace `goimports`: it's gofmt + checks unused imports * fix: lint/fix `go` files * fix: lint with `standardjs` * fix: lint/fix with `markdownlint`, make template more verbose * feat: add lint stuff to makefile * fix: `UseGitIgnore` formatting * fix: lint/fix `README.md` Co-authored-by: Casey Lee <cplee@nektos.com>
27 lines
431 B
YAML
27 lines
431 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
|
|
- exportloopref
|
|
- gocritic
|
|
- goimports
|
|
- whitespace
|
|
- misspell
|