mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
fix typo in predicate name
This commit is contained in:
@@ -16,7 +16,7 @@ import javascript
|
||||
/**
|
||||
* Holds if the method name on the given container is likely to be a mistake.
|
||||
*/
|
||||
predicate isSuspisousMethodName(string name, ClassOrInterface container) {
|
||||
predicate isSuspiciousMethodName(string name, ClassOrInterface container) {
|
||||
name = "function"
|
||||
or
|
||||
// "constructor" is only suspicious outside a class.
|
||||
@@ -30,7 +30,7 @@ from MethodDeclaration member, ClassOrInterface container, string name, string m
|
||||
where
|
||||
container.getLocation().getFile().getFileType().isTypeScript() and
|
||||
container.getMember(name) = member and
|
||||
isSuspisousMethodName(name, container) and
|
||||
isSuspiciousMethodName(name, container) and
|
||||
|
||||
// Cases to ignore.
|
||||
not (
|
||||
|
||||
Reference in New Issue
Block a user