You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ql/src/queries/performance/AbstractClassImport.ql
+28-5Lines changed: 28 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
/**
2
2
* @name Bidirectional imports for abstract classes
3
-
* @description An abstract class should import each of its subclasses, unless it is meant as an extension point, in which case it should import none of them.
3
+
* @description An abstract class should import each of its subclasses, unless
4
+
* it is meant as a configuration-style class, in which case it
5
+
* should import none of them.
4
6
* @kind problem
5
7
* @problem.severity error
6
8
* @id ql/abstract-class-import
@@ -19,12 +21,31 @@ File imports(File file) {
19
21
)
20
22
}
21
23
22
-
/** Gets a non-abstract subclass of `ab` that is defined in a different file */
0 commit comments