File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
javascript/ql/src/Declarations Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ where
3434
3535 // Cases to ignore.
3636 not (
37- // Assume that a "new" method is intentional if the class has an explicit constructor.
38- name = "new" and
39- container instanceof ClassDefinition and
40- exists ( ConstructorDeclaration constructor |
37+ // Assume that a "new" method is intentional if the class has an explicit constructor.
38+ name = "new" and
39+ container instanceof ClassDefinition and
40+ exists ( ConstructorDeclaration constructor |
4141 container .getMember ( "constructor" ) = constructor and
4242 not constructor .isSynthetic ( )
4343 )
44- or
44+ or
4545 // Explicitly declared static methods are fine.
4646 container instanceof ClassDefinition and
4747 member .isStatic ( )
You can’t perform that action at this time.
0 commit comments