Skip to content

Commit d057f49

Browse files
committed
Restore JUnit assert checkstyle restrictions
Closes gh-16949
1 parent 8e26898 commit d057f49

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/checkstyle/checkstyle.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
value="${main.basedir}/src/checkstyle/import-control.xml" />
2020
<property name="path" value="^.*[\\/]src[\\/]main[\\/].*$" />
2121
</module>
22+
<module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">
23+
<property name="maximum" value="0"/>
24+
<property name="format" value="org\.junit\.Assert\.assert" />
25+
<property name="message"
26+
value="Please use AssertJ imports." />
27+
<property name="ignoreComments" value="true" />
28+
</module>
2229
<module
2330
name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">
2431
<property name="maximum" value="0" />

0 commit comments

Comments
 (0)