Skip to content

Commit 7c43e7f

Browse files
committed
added suppression test on class level
1 parent 8cb3038 commit 7c43e7f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/NestedForDepthCheckTest.hx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,21 @@ class NestedForDepthTests {
4949
}
5050
}
5151
}
52+
}
53+
54+
@SuppressWarnings('checkstyle:NestedForDepth')
55+
class Test2 {
56+
public function test2(param:Array<Int>) {
57+
for (outerParam in params) { // level 0
58+
for (middleParam in params) { // level 1
59+
for (innerParam in params) { // level 2
60+
if (outerParam == innerParam) {
61+
trace (param);
62+
}
63+
}
64+
}
65+
}
66+
}
5267
}";
5368

5469
public static inline var TEST2:String =

0 commit comments

Comments
 (0)