mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-12 17:48:57 +00:00
67ccbb46fd
The old v1 binary was built with Go 1.23 and rejected Go 1.25 targets. Migrated .golangci.yml to v2 format: added version field, moved linters-settings under linters.settings, removed deprecated linters (structcheck/deadcode/varcheck), merged gosimple into staticcheck. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
621 B
YAML
33 lines
621 B
YAML
version: "2"
|
|
|
|
run:
|
|
timeout: 5m
|
|
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- staticcheck
|
|
- unused
|
|
- ineffassign
|
|
- typecheck
|
|
- gocritic
|
|
- gosec
|
|
- bodyclose
|
|
- noctx
|
|
settings:
|
|
errcheck:
|
|
check-type-assertions: true
|
|
gocritic:
|
|
enabled-tags:
|
|
- diagnostic
|
|
- performance
|
|
gosec:
|
|
excludes:
|
|
- G104 # Audit errors not checked (we have intentional fire-and-forget patterns)
|
|
- G304 # File inclusion via variable (needed for config-driven file paths)
|
|
exclusions:
|
|
max-issues-per-linter: 50
|
|
max-same-issues: 5
|