Files
cunicu/.golangci.yaml
Steffen Vogel 3bee839348 fix: Update copyright years
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2025-01-01 22:45:39 +01:00

78 lines
1.2 KiB
YAML

# SPDX-FileCopyrightText: 2023-2025 Steffen Vogel <post@steffenvogel.de>
# SPDX-License-Identifier: Apache-2.0
run:
exclude-files:
- ".*\\.pb\\.go$"
- ".*_grpc\\.pb\\.go$"
issues:
exclude-rules:
- path: 'cmd/(.+)'
linters:
- forbidigo
- path: '(.+)_test\.go'
linters:
- gochecknoglobals
- path: '(.+)_test\.go'
linters:
- revive
text: dot-imports
source: (ginkgo|gomega)
- path: 'test/(.+)'
text: do not define dynamic errors, use wrapped static errors instead
linters-settings:
misspell:
locale: US
exhaustive:
default-signifies-exhaustive: true
gomodguard:
blocked:
modules:
- github.com/pkg/errors:
recommendations:
- errors
tagliatelle:
case:
use-field-name: true
rules:
json: snake
yaml: snake
xml: snake
gci:
sections:
- standard
- default
- prefix(cunicu.li/cunicu)
- blank
- dot
custom-order: true
linters:
enable-all: true
disable:
- cyclop
- depguard
- exhaustruct
- exportloopref
- funlen
- gocyclo
- godox
- ireturn
- lll
- mnd
- nestif
- nolintlint
- nonamedreturns
- paralleltest
- protogetter
- tagalign
- varnamelen
- wrapcheck