validation rule for callFunc operator

This commit is contained in:
Brahim Hadriche committed 2023-12-10 22:54:00 -05:00
1 parent 51966cb33f
commit 5982b5a75f
33 files changed
+64 -55

No files matched your search

+6
View File
@@ -20,6 +20,12 @@
"regex": "\\.observeField(scoped)?\\s*\\(\\s*\"\\w+\"\\s*,\\s*\"\\w+\"\\s*\\)",
"regexFlags": "ig",
"message": "observeField(\"field\", \"callback\") is not allowed. Use observeField(\"field\", FuncName(callback)) instead."
},
{
"code": "NO_INVALID_CALLFUNC_ARG",
"regex": "@\\.\\w+\\(invalid\\)",
"regexFlags": "ig",
"message": "the arg invalid in @.func(invalid) is not needed. Just use @.func() instead."
}
],
"files": [