mirror of
https://github.com/TabbyML/tabby
synced 2024-11-22 17:41:54 +00:00
4224ff30e4
* init * update env * update rules * cleanup dependency * cleanup * update * update
23 lines
491 B
YAML
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
|