mirror of
https://github.com/TabbyML/tabby
synced 2024-11-22 00:08:06 +00:00
ci: add validation to requires code field being set for form validations (#1454)
This commit is contained in:
parent
8548caf62d
commit
3db3d95eae
17
rules/validate-requires-code.yml
Normal file
17
rules/validate-requires-code.yml
Normal file
@ -0,0 +1,17 @@
|
||||
id: validate-requires-code
|
||||
message: Validations requires code being set for frontend error display
|
||||
severity: error
|
||||
language: rust
|
||||
files:
|
||||
- ./ee/tabby-webserver/src/**
|
||||
rule:
|
||||
all:
|
||||
- pattern: '#[validate]'
|
||||
- not:
|
||||
has:
|
||||
stopBy: end
|
||||
pattern: code
|
||||
- not:
|
||||
has:
|
||||
stopBy: end
|
||||
pattern: custom
|
Loading…
Reference in New Issue
Block a user