Files
gocqlx/.golangci.yml
Dmitry Kropachev 38001d64ac Update gocql version to v1.16.1 (#353)
* Update gocql version to v1.16.1

1. Update gocql to v1.16.1
2. Update golang to 1.25, since new gocql version requres it

* Update golangci to 2.5.0

It is needed since 1.64.8 does not support golang 1.25.
1. Update golangci to 2.5.0
2. Migrate from golangci config v1 to v2
3. Integrate fieldaligment to golangci
4. Drop fieldaligment from Makefile
5. Address complaints
2025-10-28 14:52:22 -04:00

76 lines
1.2 KiB
YAML

version: "2"
formatters:
enable:
- goimports
settings:
goimports:
local-prefixes:
- github.com/scylladb/gocqlx
golines:
max-len: 120
gofumpt:
extra-rules: true
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
run:
build-tags:
- integration
- all