C#: Autoformat QL files

This commit is contained in:
Tom Hvitved
2019-01-11 09:28:31 +01:00
parent 28261d6787
commit 390ebc96ae
37 changed files with 143 additions and 181 deletions

View File

@@ -18,17 +18,13 @@ from Class c, Method present, string missing
where
c.isSourceDeclaration() and
(
(
present = c.getAMethod().(EqualsMethod) and
not c.getAMethod() instanceof GetHashCodeMethod and
missing = "GetHashCode()"
)
present = c.getAMethod().(EqualsMethod) and
not c.getAMethod() instanceof GetHashCodeMethod and
missing = "GetHashCode()"
or
(
present = c.getAMethod().(GetHashCodeMethod) and
not implementsEquals(c) and
missing = "Equals(object)"
)
present = c.getAMethod().(GetHashCodeMethod) and
not implementsEquals(c) and
missing = "Equals(object)"
)
select c, "Class '" + c.getName() + "' overrides $@, but not " + missing + ".", present,
present.getName()