tabby/rules/validate-requires-code.yml

22 lines
462 B
YAML

id: validate-requires-code
message: Validations requires code / message being set for frontend error display
severity: error
language: rust
files:
- ./ee/tabby-webserver/src/**
rule:
all:
- pattern: "#[validate]"
- not:
all:
- has:
stopBy: end
pattern: code
- has:
stopBy: end
pattern: message
- not:
has:
stopBy: end
pattern: custom