1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-08 03:07:47 -05:00
v2fly/.github/linters/.golangci.yml

61 lines
995 B
YAML
Raw Normal View History

2020-09-04 01:38:15 -04:00
run:
timeout: 5m
2020-09-09 05:50:36 -04:00
skip-files:
- generated.*
- .pb.go
2020-09-04 01:38:15 -04:00
issues:
new: true
exclude-rules:
- linters:
- staticcheck
text: "SA1019:"
2022-09-07 10:08:17 -04:00
- linters:
- stylecheck
text: "ST1016:"
2020-09-04 01:38:15 -04:00
linters:
enable:
- asciicheck
2020-09-04 01:38:15 -04:00
- bodyclose
- depguard
- gocritic
- gofmt
- gofumpt
2020-09-04 01:38:15 -04:00
- goimports
- goprintffuncname
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- revive
2020-09-04 01:38:15 -04:00
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- varcheck
- whitespace
2020-10-09 10:06:40 -04:00
disable:
- deadcode
2020-10-09 12:19:09 -04:00
- errcheck
- unused
linters-settings:
goimports:
local-prefixes: github.com/v2fly/v2ray-core
2022-04-30 12:58:07 -04:00
revive:
rules:
- name: blank-imports
severity: warning
disabled: true
2023-09-24 17:37:35 -04:00
depguard:
rules:
Main:
deny:
- pkg: "github.com/pkg/errors"
desc: Should be replaced by standard lib errors package