From 3db3d95eaedf7d347d035c1db87727cca46fe191 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Wed, 14 Feb 2024 09:27:03 -0800 Subject: [PATCH] ci: add validation to requires code field being set for form validations (#1454) --- rules/validate-requires-code.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 rules/validate-requires-code.yml 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