mirror of
https://github.com/laravel-ls/uri
synced 2026-07-04 16:34:11 +02:00
lint/golangci-lint: update golangci-lint config
This commit is contained in:
parent
06512c375e
commit
0e3caec80a
1 changed files with 29 additions and 2 deletions
|
|
@ -54,7 +54,29 @@ linters-settings:
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
enable-all: true
|
- deadcode
|
||||||
|
- depguard
|
||||||
|
- dupl
|
||||||
|
- errcheck
|
||||||
|
- goconst
|
||||||
|
- gocritic
|
||||||
|
- gofmt
|
||||||
|
- goimports
|
||||||
|
- golint
|
||||||
|
- ineffassign
|
||||||
|
- maligned
|
||||||
|
- misspell
|
||||||
|
- prealloc
|
||||||
|
- structcheck
|
||||||
|
- typecheck
|
||||||
|
- unconvert
|
||||||
|
- varcheck
|
||||||
|
- gosimple
|
||||||
|
- govet
|
||||||
|
- interfacer
|
||||||
|
- staticcheck
|
||||||
|
- stylecheck
|
||||||
|
- unparam
|
||||||
disable:
|
disable:
|
||||||
- gochecknoglobals
|
- gochecknoglobals
|
||||||
- gochecknoinits
|
- gochecknoinits
|
||||||
|
|
@ -62,10 +84,15 @@ linters:
|
||||||
- gosec
|
- gosec
|
||||||
- lll
|
- lll
|
||||||
- nakedret
|
- nakedret
|
||||||
|
- unused
|
||||||
fast: true
|
fast: true
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
exclude-use-default: false
|
exclude-rules:
|
||||||
|
- path: "const.go"
|
||||||
|
linters:
|
||||||
|
- golint
|
||||||
|
- misspell
|
||||||
|
|
||||||
output:
|
output:
|
||||||
format: colored-line-number
|
format: colored-line-number
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue