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