1
0
Fork 0
mirror of https://github.com/laravel-ls/uri synced 2026-06-16 01:54:57 +02:00
uri/.golangci.yml
2019-05-02 13:33:33 +09:00

73 lines
1.2 KiB
YAML

run:
concurrency: 12
deadline: 5m
issues-exit-code: 1
tests: true
# skip-dirs:
skip-files:
- ".*\\.pb\\.go"
- ".*(.|_)gen\\.go"
modules-download-mode: vendor
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
# exclude: .errcheckignore
goconst:
min-len: 3
min-occurrences: 3
gofmt:
simplify: true
goimports:
local-prefixes: github.com/go-language-server/uri
golint:
min-confidence: 0.3
govet:
check-shadowing: false
gocritic:
enabled-tags:
- diagnostic
- style
- performance
- experimental
settings:
captLocal:
paramsOnly: true
rangeValCopy:
sizeThreshold: 32
maligned:
suggest-new: true
misspell:
locale: US
nakedret:
max-func-lines: 30
prealloc:
simple: true
range-loops: true
for-loops: false
unparam:
algo: cha
check-exported: true
unused:
check-exported: true
linters:
enable:
enable-all: true
disable:
- gochecknoglobals
- gochecknoinits
- gocyclo
- gosec
- lll
- nakedret
fast: true
issues:
exclude-use-default: false
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true