source: josm/trunk/tools/checkstyle/josm_checks.xml

Last change on this file was 18974, checked in by taylor.smock, 8 months ago

Fix #23465: Remove custom checkstyle plugin

TopLevelJavadocCheck.java is duplicating functionality from MissingJavadocType.
Our custom class is from #14794 (closed 2017-10-16). The check that makes it
redundant was added in checkstyle 8.20 (released 2019-04-28).

This adds the missing javadocs for the more comprehensive checkstyle version.

File size: 5.5 KB
Line 
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
4<!--
5 This configuration file was written by the eclipse-cs plugin configuration editor
6-->
7<!--
8 Checkstyle-Configuration: JOSM
9 Description:
10JOSM Checkstyle rules
11-->
12<module name="Checker">
13 <property name="severity" value="warning"/>
14 <property name="charset" value="UTF-8"/>
15 <module name="TreeWalker">
16 <module name="BooleanExpressionComplexity">
17 <property name="max" value="10"/>
18 </module>
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>
22 <module name="CommentsIndentation"/>
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="MissingJavadocType"/>
35 <module name="NonEmptyAtclauseDescription"/>
36 <module name="AtclauseOrder"/>
37 <module name="AvoidStarImport"/>
38 <module name="RedundantImport"/>
39 <module name="UnusedImports">
40 <property name="processJavadoc" value="true"/>
41 </module>
42 <module name="AnonInnerLength">
43 <property name="max" value="50"/>
44 </module>
45 <module name="ExecutableStatementCount">
46 <property name="max" value="150"/>
47 <property name="tokens" value="INSTANCE_INIT,STATIC_INIT,METHOD_DEF,CTOR_DEF"/>
48 </module>
49 <module name="MethodLength">
50 <property name="max" value="300"/>
51 </module>
52 <module name="ParameterNumber">
53 <property name="max" value="10"/>
54 </module>
55 <module name="OuterTypeNumber"/>
56 <module name="GenericWhitespace"/>
57 <module name="EmptyForInitializerPad"/>
58 <module name="EmptyForIteratorPad"/>
59 <module name="NoWhitespaceAfter"/>
60 <module name="NoWhitespaceBefore"/>
61 <module name="SingleSpaceSeparator"/>
62 <module name="MethodParamPad"/>
63 <module name="ParenPad"/>
64 <module name="TypecastParenPad">
65 <property name="tokens" value="RPAREN,TYPECAST"/>
66 </module>
67 <module name="WhitespaceAfter"/>
68 <module name="WhitespaceAround">
69 <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"/>
70 <property name="allowEmptyConstructors" value="true"/>
71 <property name="allowEmptyMethods" value="true"/>
72 <property name="allowEmptyTypes" value="true"/>
73 </module>
74 <module name="EmptyLineSeparator">
75 <property name="tokens" value="CLASS_DEF,ENUM_DEF,INTERFACE_DEF,CTOR_DEF,METHOD_DEF,STATIC_INIT"/>
76 <property name="allowNoEmptyLineBetweenFields" value="true"/>
77 <property name="allowMultipleEmptyLines" value="false"/>
78 </module>
79 <module name="ModifierOrder"/>
80 <module name="RedundantModifier"/>
81 <module name="AvoidNestedBlocks">
82 <property name="allowInSwitchCase" value="true"/>
83 </module>
84 <module name="EmptyBlock">
85 <property name="tokens" value="LITERAL_TRY,LITERAL_CATCH,LITERAL_FINALLY,LITERAL_DO,LITERAL_ELSE,LITERAL_FOR,INSTANCE_INIT,STATIC_INIT,LITERAL_SWITCH"/>
86 </module>
87 <module name="EmptyCatchBlock"/>
88 <module name="LeftCurly"/>
89 <module name="RightCurly"/>
90 <module name="NeedBraces">
91 <property name="tokens" value="LITERAL_DO,LITERAL_FOR,LITERAL_WHILE"/>
92 <property name="allowSingleLineStatement" value="true"/>
93 </module>
94 <module name="ArrayTypeStyle"/>
95 <module name="UpperEll"/>
96 <module name="OuterTypeFilename"/>
97 <module name="FinalClass"/>
98 <module name="HideUtilityClassConstructor"/>
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>
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"/>
111 <property name="max" value="2500"/>
112 </module>
113 <module name="FileTabCharacter"/>
114 <module name="LineLength">
115 <property name="fileExtensions" value="java" />
116 <property name="max" value="145"/>
117 <property name="tabWidth" value="4"/>
118 </module>
119 <module name="NewlineAtEndOfFile">
120 </module>
121 <module name="SuppressionFilter">
122 <property name="file" value="${basedir}/tools/checkstyle/josm_filters.xml" default="tools/checkstyle/josm_filters.xml"/>
123 <property name="optional" value="true"/>
124 </module>
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>
130</module>
Note: See TracBrowser for help on using the repository browser.