golangci-lint v2.15.0 ships a honnef.co/go/tools that analyzes the Go 1.27 standard library without panicking. Fix what they found: dead helpers, an unused constant, error strings starting with a product name, the usage error, and two negations simplified by De Morgan. Closes #43 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
49 lines
934 B
YAML
49 lines
934 B
YAML
version: "2"
|
|
|
|
run:
|
|
tests: true
|
|
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- ineffassign
|
|
- revive
|
|
- errorlint
|
|
- gocritic
|
|
- misspell
|
|
- unconvert
|
|
- usestdlibvars
|
|
- staticcheck
|
|
- unused
|
|
settings:
|
|
revive:
|
|
rules:
|
|
- name: exported
|
|
arguments: [checkPrivateReceivers, sayRepetitiveInsteadOfStutters]
|
|
- name: package-comments
|
|
- name: var-naming
|
|
- name: receiver-naming
|
|
- name: error-strings
|
|
- name: error-naming
|
|
- name: indent-error-flow
|
|
- name: context-as-argument
|
|
- name: unexported-return
|
|
- name: blank-imports
|
|
exclusions:
|
|
generated: strict
|
|
rules:
|
|
- path: _test\.go
|
|
linters: [revive]
|
|
text: "exported"
|
|
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
settings:
|
|
goimports:
|
|
local-prefixes:
|
|
- git.zb-server.de/ZB-Server/uptimesebi
|