mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-12-27 04:26:29 -05:00
c7291b6f59
* Add golangci-lint config yaml and GitHub Actions workflows * Update to Go 1.14
89 lines
1.3 KiB
YAML
89 lines
1.3 KiB
YAML
---
|
|
linters-settings:
|
|
dupl:
|
|
threshold: 100
|
|
funlen:
|
|
lines: 100
|
|
statements: 50
|
|
goconst:
|
|
min-len: 2
|
|
min-occurrences: 2
|
|
gocritic:
|
|
enabled-tags:
|
|
- diagnostic
|
|
- experimental
|
|
- opinionated
|
|
- performance
|
|
- style
|
|
disabled-checks:
|
|
gocyclo:
|
|
min-complexity: 15
|
|
goimports:
|
|
local-prefixes: github.com/OpenDiablo2/OpenDiablo2
|
|
golint:
|
|
min-confidence: 0.8
|
|
govet:
|
|
check-shadowing: true
|
|
lll:
|
|
line-length: 140
|
|
maligned:
|
|
suggest-new: true
|
|
misspell:
|
|
locale: US
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- bodyclose
|
|
- deadcode
|
|
- depguard
|
|
- dogsled
|
|
- dupl
|
|
- errcheck
|
|
- funlen
|
|
- gochecknoglobals
|
|
- gochecknoinits
|
|
- gocognit
|
|
- goconst
|
|
- gocritic
|
|
- gocyclo
|
|
- godox
|
|
- gofmt
|
|
- goimports
|
|
- golint
|
|
- gomnd
|
|
- goprintffuncname
|
|
- gosec
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- interfacer
|
|
- lll
|
|
- maligned
|
|
- misspell
|
|
- nakedret
|
|
- prealloc
|
|
- rowserrcheck
|
|
- scopelint
|
|
- staticcheck
|
|
- structcheck
|
|
- stylecheck
|
|
- typecheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- varcheck
|
|
- whitespace
|
|
- wsl
|
|
|
|
run:
|
|
timeout: 5m
|
|
skip-dirs:
|
|
- .github
|
|
- build
|
|
- web
|
|
|
|
issues:
|
|
max-same-issues: 0
|
|
exclude-use-default: false
|