Skip to content

Commit b4846dc

Browse files
committed
CPP: Modify NVIHub.ql.
1 parent 1c27c5e commit b4846dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/Best Practices/NVIHub.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* to enforce invariants that should hold for the whole hierarchy.
55
* This is especially problematic in classes with many
66
* dependencies or dependents.
7-
* @kind table
7+
* @kind problem
88
* @id cpp/nvi-hub
99
* @problem.severity recommendation
1010
* @precision low
@@ -22,4 +22,4 @@ where f.hasSpecifier("public") and
2222
fclass = f.getDeclaringType() and
2323
hubIndex = fclass.getMetrics().getAfferentCoupling() * fclass.getMetrics().getEfferentCoupling() and
2424
hubIndex > 100
25-
select f.getFile(), f, "Avoid having public virtual methods (NVI idiom)"
25+
select f, "Avoid having public virtual methods (NVI idiom)"

0 commit comments

Comments
 (0)