mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
C#: Autoformat QL files
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user