Files
hetty/.golangci.yml

54 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2021-04-25 16:23:53 +02:00
linters:
presets:
- bugs
- comment
- error
- format
- import
- metalinter
- module
- performance
- style
- test
- unused
disable:
2022-02-28 16:21:01 +01:00
- dupl
2021-04-25 16:23:53 +02:00
- exhaustive
- exhaustivestruct
- gochecknoglobals
- gochecknoinits
- godox
- goerr113
- gomnd
- interfacer
- maligned
2022-02-28 16:21:01 +01:00
- nilnil
2021-04-25 16:23:53 +02:00
- nlreturn
- scopelint
2021-04-25 16:23:53 +02:00
- testpackage
2022-02-28 16:21:01 +01:00
- varnamelen
2021-04-25 16:23:53 +02:00
- wrapcheck
linters-settings:
gci:
local-prefixes: github.com/dstotijn/hetty
godot:
capital: true
2022-02-28 16:21:01 +01:00
ireturn:
allow: "error,empty,anon,stdlib,.*(or|er)$,github.com/dstotijn/hetty/pkg/filter.Expression"
2021-04-25 16:23:53 +02:00
issues:
exclude-rules:
- linters:
- gosec
2021-04-25 16:23:53 +02:00
# Ignore SHA1 usage.
text: "G(401|505):"
- linters:
- wsl
2021-04-25 16:23:53 +02:00
# Ignore cuddled defer statements.
text: "only one cuddle assignment allowed before defer statement"
- linters:
- nlreturn
2021-04-25 16:23:53 +02:00
# Ignore `break` without leading blank line.
text: "break with no blank line before"