debian-forge-cli/.golangci.yml
Lukas Zapletal 2828ee63cf ci: upgrade golangci-lint to 2.3.0
Upgrades the configuration file from V1 to V2 format which was pretty
straightforward. The vendor/ directory no longer needs to be excluded as
it is a default now in 2.x.

Updates the pre-commit configuration to the latest and greatest version.
2025-07-25 09:10:11 +00:00

31 lines
558 B
YAML

---
version: "2"
linters-settings:
govet:
disable:
- shadow # default value recommended by golangci
- composites
gosec:
excludes:
- G101
linters:
enable:
- gosec
run:
build-tags:
- integration
timeout: 5m
issues:
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default
# is 3.
max-same-issues: 0
exclude-rules:
- path: ^(pkg|internal)/.*_test\.go$
linters: ["gosec"]