ci: add validation to requires code field being set for form validations (#1454)

This commit is contained in:
Meng Zhang 2024-02-14 09:27:03 -08:00 committed by GitHub
parent 8548caf62d
commit 3db3d95eae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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