Changeset 8510 in josm for trunk/tools/checkstyle


Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/checkstyle/josm_checks.xml

    r8508 r8510  
    1313  <property name="severity" value="warning"/>
    1414  <module name="TreeWalker">
     15    <module name="FileContentsHolder"/>
    1516    <module name="MissingDeprecated"/>
    1617    <module name="MissingOverride"/>
     
    5051    <module name="OuterTypeNumber"/>
    5152    <module name="MethodCount"/>
     53    <module name="GenericWhitespace"/>
     54    <module name="EmptyForInitializerPad"/>
     55    <module name="EmptyForIteratorPad"/>
     56    <module name="NoWhitespaceAfter"/>
     57    <module name="NoWhitespaceBefore"/>
     58    <module name="MethodParamPad"/>
     59    <module name="ParenPad"/>
     60    <module name="TypecastParenPad">
     61      <property name="tokens" value="RPAREN,TYPECAST"/>
     62    </module>
     63    <module name="WhitespaceAfter"/>
     64    <module name="WhitespaceAround">
     65      <property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV_ASSIGN,DO_WHILE,EQUAL,GE,GT,LAND,LCURLY,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR_ASSIGN,TYPE_EXTENSION_AND"/>
     66      <property name="allowEmptyConstructors" value="true"/>
     67      <property name="allowEmptyMethods" value="true"/>
     68      <property name="allowEmptyTypes" value="true"/>
     69    </module>
     70    <module name="EmptyLineSeparator">
     71      <property name="tokens" value="CLASS_DEF,ENUM_DEF,INTERFACE_DEF,CTOR_DEF,METHOD_DEF,STATIC_INIT"/>
     72      <property name="allowNoEmptyLineBetweenFields" value="true"/>
     73      <property name="allowMultipleEmptyLines" value="false"/>
     74    </module>
    5275  </module>
    5376  <module name="Header">
     
    5881    <property name="fileExtensions" value=".java"/>
    5982  </module>
     83  <module name="SuppressionCommentFilter">
     84    <property name="offCommentFormat" value="CHECKSTYLE\.OFF\: ([\w\|]+)"/>
     85    <property name="onCommentFormat" value="CHECKSTYLE\.ON\: ([\w\|]+)"/>
     86    <property name="checkFormat" value="$1"/>
     87  </module>
     88  <module name="FileTabCharacter"/>
    6089</module>
Note: See TracChangeset for help on using the changeset viewer.