change tabs to spaces

This commit is contained in:
Erik Krogh Kristensen
2019-10-02 15:03:38 +02:00
parent 0c46e5c1a8
commit 2b5e3aebb7

View File

@@ -34,14 +34,14 @@ where
// Cases to ignore.
not (
// Assume that a "new" method is intentional if the class has an explicit constructor.
name = "new" and
container instanceof ClassDefinition and
exists(ConstructorDeclaration constructor |
// Assume that a "new" method is intentional if the class has an explicit constructor.
name = "new" and
container instanceof ClassDefinition and
exists(ConstructorDeclaration constructor |
container.getMember("constructor") = constructor and
not constructor.isSynthetic()
)
or
or
// Explicitly declared static methods are fine.
container instanceof ClassDefinition and
member.isStatic()