mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Extract override modifier
This commit is contained in:
@@ -21,6 +21,7 @@ from OverridingMethod m, Method overridden
|
||||
where
|
||||
m.fromSource() and
|
||||
m.overrides(overridden) and
|
||||
not m.hasModifier("override") and
|
||||
not m.isOverrideAnnotated() and
|
||||
not exists(FunctionalExpr mref | mref.asMethod() = m)
|
||||
select m, "This method overrides $@; it is advisable to add an Override annotation.", overridden,
|
||||
|
||||
Reference in New Issue
Block a user