diff --git a/rules/validate-requires-code.yml b/rules/validate-requires-code.yml new file mode 100644 index 000000000..166fc6985 --- /dev/null +++ b/rules/validate-requires-code.yml @@ -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 \ No newline at end of file