linters: add httpstatus linter

This commit is contained in:
2026-10-18 15:02:44 -07:00
parent 7b5000b663
commit 9f10798be1
9 changed files with 315 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ linters:
# Custom linters
- ifinit
- boolnames
- httpstatus
settings:
custom:
@@ -37,6 +38,9 @@ linters:
boolnames:
type: module
description: boolean variables and functions should use "is", "has", "was" etc
httpstatus:
type: module
description: HTTP status codes should use the project's typical-code policy
forbidigo:
forbid:
- pattern: ^sync\.Map$