72 lines
1.7 KiB
YAML
72 lines
1.7 KiB
YAML
linters-settings:
|
|
depguard:
|
|
list-type: blacklist
|
|
include-go-root: true
|
|
packages:
|
|
# we are using "github.com/json-iterator/go" instead of json encoder from stdlib
|
|
- "encoding/json"
|
|
dupl:
|
|
threshold: 100
|
|
gocritic:
|
|
# Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint` run to see all tags and checks.
|
|
# Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
|
|
enabled-tags:
|
|
- performance
|
|
- diagnostic
|
|
- style
|
|
disabled-checks:
|
|
- emptyStringTest
|
|
- unnamedResult # it is experimental currently and doesn't handle typed channels correctly
|
|
gocyclo:
|
|
min-complexity: 14 # TODO go lower
|
|
golint:
|
|
min-confidence: 0
|
|
govet:
|
|
check-shadowing: true
|
|
goconst:
|
|
min-len: 2
|
|
min-occurrences: 3
|
|
goimports:
|
|
local-prefixes: gitlab.skypicker.com/search-team/gonuts/conveyance-store
|
|
lll:
|
|
line-length: 140
|
|
maligned:
|
|
suggest-new: true
|
|
misspell:
|
|
locale: US
|
|
|
|
linters:
|
|
enable-all: true
|
|
disable:
|
|
# prealloc is not recommended by `golangci-lint` developers.
|
|
- prealloc
|
|
- gochecknoglobals
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- goconst
|
|
- dupl
|
|
|
|
- path: fixtures
|
|
linters:
|
|
- gocritic
|
|
- varcheck
|
|
- deadcode
|
|
- unused
|
|
|
|
run:
|
|
modules-download-mode: readonly
|
|
|
|
# output configuration options
|
|
output:
|
|
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
|
|
format: tab
|
|
|
|
# print lines of code with issue, default is true
|
|
print-issued-lines: true
|
|
|
|
# print linter name in the end of issue text, default is true
|
|
print-linter-name: true
|