Prevent accidental Sysouts in the codebase

This commit is contained in:
Brian Clozel
2024-10-30 10:36:30 +01:00
parent 022fdcd67e
commit 8ffbafd384
3 changed files with 11 additions and 1 deletions

View File

@@ -237,6 +237,14 @@
value="String.toUpperCase() should be String.toUpperCase(Locale.ROOT)"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">
<property name="id" value="systemOutPrintln"/>
<property name="format" value="System\.out\.println"/>
<property name="maximum" value="0"/>
<property name="message"
value="System.out.println calls are forbidden in the main codebase"/>
<property name="ignoreComments" value="true"/>
</module>
<module
name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">
<property name="maximum" value="0"/>