linters: add httpstatus linter
This commit is contained in:
@@ -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$
|
||||
|
||||
Reference in New Issue
Block a user