validation rule for callFunc operator
This commit is contained in:
1 parent
51966cb33f
commit
5982b5a75f
33 files changed
+64
-55
No files matched your search
@@ -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": [
|
||||
|
||||
Reference in new issue
Block a user