Files
gocqlx/.golangci.yml

76 lines
1.2 KiB
YAML
Raw Normal View History

version: "2"
2018-08-07 15:30:04 +02:00
formatters:
enable:
- goimports
settings:
goimports:
local-prefixes:
- github.com/scylladb/gocqlx
golines:
max-len: 120
gofumpt:
extra-rules: true
2018-08-07 15:30:04 +02:00
linters:
exclusions:
rules:
- path: '(.+)_test\.go'
text: "fieldalignment"
linters:
- govet
default: none
enable:
- nolintlint
- errcheck
- gocritic
- goheader
- govet
- ineffassign
- lll
- misspell
- predeclared
- revive
- staticcheck
- thelper
- tparallel
- unused
- forbidigo
settings:
revive:
rules:
- name: package-comments
disabled: true
govet:
enable-all: true
disable:
- shadow
errcheck:
check-blank: false
gocognit:
min-complexity: 50
gocritic:
enabled-tags:
- diagnostic
- performance
- style
disabled-checks:
- commentedOutCode
- evalOrder
- hugeParam
- importShadow
- yodaStyleExpr
- whyNoLint
lll:
line-length: 180
nolintlint:
allow-no-explanation: [ golines ]
require-explanation: true
require-specific: true
2018-08-07 15:30:04 +02:00
run:
build-tags:
- integration
- all