Dawid Wysokiński
631c080376
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: twhelp/core#33
102 lines
1.6 KiB
YAML
102 lines
1.6 KiB
YAML
run:
|
|
tests: true
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- bodyclose
|
|
- deadcode
|
|
- depguard
|
|
- errcheck
|
|
- gocritic
|
|
- gofmt
|
|
- goimports
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- nakedret
|
|
- prealloc
|
|
- staticcheck
|
|
- structcheck
|
|
- typecheck
|
|
- unconvert
|
|
- unused
|
|
- varcheck
|
|
- lll
|
|
- nestif
|
|
- thelper
|
|
- nonamedreturns
|
|
- gocyclo
|
|
- gomnd
|
|
- tenv
|
|
- testpackage
|
|
- noctx
|
|
- tparallel
|
|
- usestdlibvars
|
|
- unconvert
|
|
|
|
linters-settings:
|
|
tagliatelle:
|
|
case:
|
|
use-field-name: true
|
|
rules:
|
|
json: camel
|
|
bun: snake
|
|
lll:
|
|
line-length: 150
|
|
gocyclo:
|
|
min-complexity: 10
|
|
govet:
|
|
enable:
|
|
- asmdecl
|
|
- assign
|
|
- atomic
|
|
- atomicalign
|
|
- bools
|
|
- buildtag
|
|
- cgocall
|
|
- composites
|
|
- copylocks
|
|
- deepequalerrors
|
|
- errorsas
|
|
- findcall
|
|
- framepointer
|
|
- httpresponse
|
|
- ifaceassert
|
|
- loopclosure
|
|
- lostcancel
|
|
- nilfunc
|
|
- nilness
|
|
- printf
|
|
- reflectvaluecompare
|
|
- shadow
|
|
- shift
|
|
- sigchanyzer
|
|
- sortslice
|
|
- stdmethods
|
|
- stringintconv
|
|
- structtag
|
|
- testinggoroutine
|
|
- tests
|
|
- unmarshal
|
|
- unreachable
|
|
- unsafeptr
|
|
- unusedresult
|
|
- unusedwrite
|
|
gomnd:
|
|
ignored-functions:
|
|
- strconv.FormatInt
|
|
- strconv.ParseInt
|
|
|
|
issues:
|
|
exclude-rules:
|
|
# Exclude some linters from running on tests files.
|
|
- path: _test\.go
|
|
linters:
|
|
- dupl
|
|
- gocyclo
|
|
- linters:
|
|
- lll
|
|
source: "^//go:generate "
|