2022-01-15 19:31:14 +01:00
|
|
|
---
|
|
|
|
run:
|
|
|
|
timeout: "5m"
|
|
|
|
output:
|
|
|
|
sort-results: true
|
|
|
|
linters-settings:
|
|
|
|
goimports:
|
|
|
|
local-prefixes: "github.com/chihaya/chihaya"
|
2022-01-16 05:28:52 +01:00
|
|
|
gosec:
|
|
|
|
excludes:
|
2022-01-18 19:33:46 +01:00
|
|
|
- "G404" # Allow the usage of math/rand
|
2022-01-15 19:31:14 +01:00
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- "bidichk"
|
|
|
|
- "bodyclose"
|
|
|
|
- "deadcode"
|
|
|
|
- "errcheck"
|
|
|
|
- "errname"
|
|
|
|
- "errorlint"
|
|
|
|
- "gofumpt"
|
|
|
|
- "goimports"
|
|
|
|
- "goprintffuncname"
|
|
|
|
- "gosec"
|
|
|
|
- "gosimple"
|
|
|
|
- "govet"
|
|
|
|
- "ifshort"
|
|
|
|
- "importas"
|
|
|
|
- "ineffassign"
|
|
|
|
- "makezero"
|
|
|
|
- "prealloc"
|
|
|
|
- "predeclared"
|
|
|
|
- "revive"
|
|
|
|
- "rowserrcheck"
|
|
|
|
- "staticcheck"
|
|
|
|
- "structcheck"
|
|
|
|
- "stylecheck"
|
|
|
|
- "tenv"
|
|
|
|
- "typecheck"
|
|
|
|
- "unconvert"
|
|
|
|
- "unused"
|
|
|
|
- "varcheck"
|
|
|
|
- "wastedassign"
|
|
|
|
- "whitespace"
|
2022-01-18 19:33:46 +01:00
|
|
|
issues:
|
|
|
|
include:
|
|
|
|
- "EXC0012" # Exported should have comment
|
|
|
|
- "EXC0012" # Exported should have comment
|
|
|
|
- "EXC0013" # Package comment should be of form
|
|
|
|
- "EXC0014" # Comment on exported should be of form
|
|
|
|
- "EXC0015" # Should have a package comment
|