[8508] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
---|
| 3 |
|
---|
[12582] | 4 | <!--
|
---|
| 5 | This configuration file was written by the eclipse-cs plugin configuration editor
|
---|
[8508] | 6 | -->
|
---|
[12582] | 7 | <!--
|
---|
| 8 | Checkstyle-Configuration: JOSM
|
---|
| 9 | Description:
|
---|
| 10 | JOSM Checkstyle rules
|
---|
[8508] | 11 | -->
|
---|
| 12 | <module name="Checker">
|
---|
| 13 | <property name="severity" value="warning"/>
|
---|
[10416] | 14 | <property name="charset" value="UTF-8"/>
|
---|
[8508] | 15 | <module name="TreeWalker">
|
---|
[11587] | 16 | <module name="BooleanExpressionComplexity">
|
---|
[14236] | 17 | <property name="max" value="10"/>
|
---|
[11587] | 18 | </module>
|
---|
[11620] | 19 | <module name="CatchParameterName">
|
---|
| 20 | <property name="format" value="^(e[1-9]?|t|ex[1-9]?|[a-z][a-z][a-zA-Z]+)$"/>
|
---|
| 21 | </module>
|
---|
[11622] | 22 | <module name="CommentsIndentation"/>
|
---|
[8508] | 23 | <module name="MissingDeprecated"/>
|
---|
| 24 | <module name="MissingOverride"/>
|
---|
| 25 | <module name="PackageAnnotation"/>
|
---|
| 26 | <module name="AnnotationLocation">
|
---|
| 27 | <property name="allowSamelineMultipleAnnotations" value="true"/>
|
---|
| 28 | </module>
|
---|
| 29 | <module name="AnnotationUseStyle"/>
|
---|
| 30 | <module name="JavadocStyle">
|
---|
| 31 | <property name="checkFirstSentence" value="false"/>
|
---|
| 32 | <property name="checkHtml" value="false"/>
|
---|
| 33 | </module>
|
---|
| 34 | <module name="NonEmptyAtclauseDescription"/>
|
---|
| 35 | <module name="AtclauseOrder"/>
|
---|
| 36 | <module name="AvoidStarImport"/>
|
---|
| 37 | <module name="RedundantImport"/>
|
---|
| 38 | <module name="UnusedImports">
|
---|
| 39 | <property name="processJavadoc" value="true"/>
|
---|
| 40 | </module>
|
---|
| 41 | <module name="AnonInnerLength">
|
---|
| 42 | <property name="max" value="50"/>
|
---|
| 43 | </module>
|
---|
| 44 | <module name="ExecutableStatementCount">
|
---|
[8540] | 45 | <property name="max" value="150"/>
|
---|
[8508] | 46 | <property name="tokens" value="INSTANCE_INIT,STATIC_INIT,METHOD_DEF,CTOR_DEF"/>
|
---|
| 47 | </module>
|
---|
| 48 | <module name="MethodLength">
|
---|
| 49 | <property name="max" value="300"/>
|
---|
| 50 | </module>
|
---|
| 51 | <module name="ParameterNumber">
|
---|
| 52 | <property name="max" value="10"/>
|
---|
| 53 | </module>
|
---|
| 54 | <module name="OuterTypeNumber"/>
|
---|
[8510] | 55 | <module name="GenericWhitespace"/>
|
---|
| 56 | <module name="EmptyForInitializerPad"/>
|
---|
| 57 | <module name="EmptyForIteratorPad"/>
|
---|
| 58 | <module name="NoWhitespaceAfter"/>
|
---|
[11747] | 59 | <module name="NoWhitespaceBefore"/>
|
---|
[10378] | 60 | <module name="SingleSpaceSeparator"/>
|
---|
[8510] | 61 | <module name="MethodParamPad"/>
|
---|
| 62 | <module name="ParenPad"/>
|
---|
| 63 | <module name="TypecastParenPad">
|
---|
| 64 | <property name="tokens" value="RPAREN,TYPECAST"/>
|
---|
| 65 | </module>
|
---|
| 66 | <module name="WhitespaceAfter"/>
|
---|
| 67 | <module name="WhitespaceAround">
|
---|
| 68 | <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"/>
|
---|
| 69 | <property name="allowEmptyConstructors" value="true"/>
|
---|
| 70 | <property name="allowEmptyMethods" value="true"/>
|
---|
| 71 | <property name="allowEmptyTypes" value="true"/>
|
---|
| 72 | </module>
|
---|
| 73 | <module name="EmptyLineSeparator">
|
---|
| 74 | <property name="tokens" value="CLASS_DEF,ENUM_DEF,INTERFACE_DEF,CTOR_DEF,METHOD_DEF,STATIC_INIT"/>
|
---|
| 75 | <property name="allowNoEmptyLineBetweenFields" value="true"/>
|
---|
| 76 | <property name="allowMultipleEmptyLines" value="false"/>
|
---|
| 77 | </module>
|
---|
[8511] | 78 | <module name="ModifierOrder"/>
|
---|
[8512] | 79 | <module name="RedundantModifier"/>
|
---|
[8513] | 80 | <module name="AvoidNestedBlocks">
|
---|
| 81 | <property name="allowInSwitchCase" value="true"/>
|
---|
| 82 | </module>
|
---|
| 83 | <module name="EmptyBlock">
|
---|
| 84 | <property name="tokens" value="LITERAL_TRY,LITERAL_CATCH,LITERAL_FINALLY,LITERAL_DO,LITERAL_ELSE,LITERAL_FOR,INSTANCE_INIT,STATIC_INIT,LITERAL_SWITCH"/>
|
---|
| 85 | </module>
|
---|
| 86 | <module name="EmptyCatchBlock"/>
|
---|
[13227] | 87 | <module name="LeftCurly"/>
|
---|
[8513] | 88 | <module name="RightCurly"/>
|
---|
| 89 | <module name="NeedBraces">
|
---|
| 90 | <property name="tokens" value="LITERAL_DO,LITERAL_FOR,LITERAL_WHILE"/>
|
---|
| 91 | <property name="allowSingleLineStatement" value="true"/>
|
---|
| 92 | </module>
|
---|
[8514] | 93 | <module name="ArrayTypeStyle"/>
|
---|
| 94 | <module name="UpperEll"/>
|
---|
| 95 | <module name="OuterTypeFilename"/>
|
---|
| 96 | <module name="FinalClass"/>
|
---|
| 97 | <module name="HideUtilityClassConstructor"/>
|
---|
[12582] | 98 | <module name="org.openstreetmap.josm.TopLevelJavadocCheck"/>
|
---|
[13227] | 99 | <module name="SuppressionCommentFilter">
|
---|
| 100 | <property name="offCommentFormat" value="CHECKSTYLE\.OFF\: ([\w\|]+)"/>
|
---|
| 101 | <property name="onCommentFormat" value="CHECKSTYLE\.ON\: ([\w\|]+)"/>
|
---|
| 102 | <property name="checkFormat" value="$1"/>
|
---|
| 103 | </module>
|
---|
[8508] | 104 | </module>
|
---|
| 105 | <module name="Header">
|
---|
| 106 | <property name="header" value="// License: GPL. For details, see LICENSE file."/>
|
---|
| 107 | <property name="fileExtensions" value=".java"/>
|
---|
| 108 | </module>
|
---|
| 109 | <module name="FileLength">
|
---|
| 110 | <property name="fileExtensions" value=".java"/>
|
---|
[13650] | 111 | <property name="max" value="2500"/>
|
---|
[8508] | 112 | </module>
|
---|
[8510] | 113 | <module name="FileTabCharacter"/>
|
---|
[15588] | 114 | <module name="LineLength">
|
---|
| 115 | <property name="fileExtensions" value="java" />
|
---|
| 116 | <property name="max" value="145"/>
|
---|
| 117 | <property name="tabWidth" value="4"/>
|
---|
| 118 | </module>
|
---|
[8514] | 119 | <module name="NewlineAtEndOfFile">
|
---|
| 120 | </module>
|
---|
[8536] | 121 | <module name="SuppressionFilter">
|
---|
[9235] | 122 | <property name="file" value="${basedir}/tools/checkstyle/josm_filters.xml" default="tools/checkstyle/josm_filters.xml"/>
|
---|
[10415] | 123 | <property name="optional" value="true"/>
|
---|
[8536] | 124 | </module>
|
---|
[15588] | 125 | <module name="SuppressWithPlainTextCommentFilter">
|
---|
| 126 | <property name="offCommentFormat" value="CHECKSTYLE\.OFF\: ([\w\|]+)"/>
|
---|
| 127 | <property name="onCommentFormat" value="CHECKSTYLE\.ON\: ([\w\|]+)"/>
|
---|
| 128 | <property name="checkFormat" value="$1"/>
|
---|
| 129 | </module>
|
---|
[8508] | 130 | </module>
|
---|