lint: enable custom linters from go-lint project

This commit is contained in:
2026-09-19 21:36:31 -07:00
parent ef71828ce2
commit c70732d6af
6 changed files with 83 additions and 5 deletions

View File

@@ -20,7 +20,20 @@ linters:
- whitespace
- wrapcheck
# Shared custom linters from ../go-lint.
- ifinit
- boolnames
settings:
custom:
ifinit:
type: module
description: if-statement init clauses must be on a single line
boolnames:
type: module
description: boolean variables and functions should use is, has, was, and similar prefixes
settings:
allowed_prefixes: ["is", "has", "can", "was", "should"]
depguard:
rules:
main: