zanata-build-tools.checkstyle.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0"?><!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> <!-- Checkstyle is very configurable. Be sure to read the documentation at http://checkstyle.sf.net (or in your downloaded distribution). Most Checks are configurable, be sure to consult the documentation. To completely disable a check, just comment it out or delete it from the file. Finally, it is worth reading the documentation. --> <module name="Checker"> <!-- Checks whether files end with a new line. --> <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile --> <module name="NewlineAtEndOfFile" /> <!-- Checks for whitespace --> <!-- See http://checkstyle.sf.net/config_whitespace.html --> <module name="FileTabCharacter" /> <module name="TreeWalker"> <module name="LeftCurly"/> <!-- <module name="LineLength"> <property name="severity" value="warning"/> </module> --> <module name="MethodParamPad"/> <!-- TODO reformat offending files and enable this: <module name="NeedBraces"> <property name="allowSingleLineStatement" value="true"/> </module> --> <module name="ParenPad"/> <!-- Right brace on the same line as the next token, eg: <code> } catch (IOException e) </code> or: <code> } else if (someFlag) { </code> --> <module name="RightCurly"> <property name="option" value="same"/> </module> <module name="TrailingComment"/> <module name="WhitespaceAfter"/> <module name="WhitespaceAround"> <property name="allowEmptyConstructors" value = "true" /> <property name="allowEmptyMethods" value = "true" /> <property name="allowEmptyTypes" value = "true" /> <property name="allowEmptyLoops" value = "true" /> <property name="ignoreEnhancedForColon" value = "true" /> </module> </module> <!-- Miscellaneous other checks. --> <!-- See http://checkstyle.sf.net/config_misc.html --> <module name="RegexpSingleline"> <property name="format" value="\s+$" /> <property name="minimum" value="0" /> <property name="maximum" value="0" /> <property name="message" value="Line has trailing spaces." /> </module> <module name="UniqueProperties"> <property name="fileExtensions" value="properties" /> </module> </module>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy