tabby/rules/validate-requires-code.yml
Meng Zhang 4224ff30e4
refactor(webserver): extract tabby-schema (#2028)
* init

* update env

* update rules

* cleanup dependency

* cleanup

* update

* update
2024-05-01 22:50:26 -07:00

23 lines
491 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/**
- ./ee/tabby-schema/src/**
rule:
all:
- pattern: "#[validate]"
- not:
all:
- has:
stopBy: end
pattern: code
- has:
stopBy: end
pattern: message
- not:
has:
stopBy: end
pattern: custom