Created
September 14, 2022 08:49
-
-
Save michael-simons/b4207d81381153482d12615489675af8 to your computer and use it in GitHub Desktop.
Checkstyle config enforcing tabs but allowing leading spaces in text blocks.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | |
"https://checkstyle.org/dtds/configuration_1_3.dtd"> | |
<module name="Checker"> | |
<module name="SuppressWithPlainTextCommentFilter"> | |
<property name="offCommentFormat" value='=\s+"""'/> | |
<property name="onCommentFormat" value='^\s+.*""";'/> | |
</module> | |
<module name="com.puppycrawl.tools.checkstyle.TreeWalker"> | |
<module name="SuppressWarningsHolder" /> | |
<module name="RegexpSinglelineJava"> | |
<property name="format" value="^\t* "/> | |
<property name="message" value="Indent must use tab characters"/> | |
<property name="ignoreComments" value="true"/> | |
</module> | |
</module> | |
</module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment