mirror of
https://github.com/gin-gonic/gin.git
synced 2025-12-18 00:17:00 +08:00
66 lines
1.1 KiB
YAML
66 lines
1.1 KiB
YAML
version: "2"
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- perfsprint
|
|
- staticcheck
|
|
- unused
|
|
settings:
|
|
errcheck:
|
|
without_tests: true
|
|
govet:
|
|
disable:
|
|
- tests
|
|
misspell:
|
|
locale: US
|
|
perfsprint:
|
|
int-conversion: false
|
|
err-error: false
|
|
errorf: true
|
|
sprintf1: false
|
|
strconcat: false
|
|
staticcheck:
|
|
checks:
|
|
- -ST1000
|
|
- -ST1005
|
|
- all
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
rules:
|
|
- linters:
|
|
- staticcheck
|
|
path: _test\.go
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
- gofmt
|
|
settings:
|
|
gci:
|
|
sections:
|
|
- standard
|
|
- default
|
|
- prefix(github.com/goccy/go-yaml)
|
|
- blank
|
|
- dot
|
|
gofmt:
|
|
simplify: true
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|