1
0
Fork 0
mirror of https://github.com/laravel-ls/uri synced 2026-07-03 08:03:40 +02:00

all: add initial go project files

This commit is contained in:
Koichi Shiraishi 2019-05-02 13:26:26 +09:00
parent 0914aa470d
commit 4c0c7d6771
No known key found for this signature in database
GPG key ID: A71DFD3B4DA7A79B
5 changed files with 350 additions and 0 deletions

73
.golangci.yml Normal file
View file

@ -0,0 +1,73 @@
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