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

Last change on this file since 8510 was 8510, checked in by Don-vip, 9 years ago

checkstyle: enable relevant whitespace checks and fix them

File size: 3.7 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 <module name="TreeWalker">
15 <module name="FileContentsHolder"/>
16 <module name="MissingDeprecated"/>
17 <module name="MissingOverride"/>
18 <module name="PackageAnnotation"/>
19 <module name="AnnotationLocation">
20 <property name="allowSamelineMultipleAnnotations" value="true"/>
21 </module>
22 <module name="AnnotationUseStyle"/>
23 <module name="JavadocStyle">
24 <property name="checkFirstSentence" value="false"/>
25 <property name="checkHtml" value="false"/>
26 </module>
27 <module name="NonEmptyAtclauseDescription"/>
28 <module name="AtclauseOrder"/>
29 <module name="AvoidStarImport"/>
30 <module name="RedundantImport"/>
31 <module name="UnusedImports">
32 <property name="processJavadoc" value="true"/>
33 </module>
34 <module name="AnonInnerLength">
35 <property name="max" value="50"/>
36 </module>
37 <module name="ExecutableStatementCount">
38 <property name="max" value="128"/>
39 <property name="tokens" value="INSTANCE_INIT,STATIC_INIT,METHOD_DEF,CTOR_DEF"/>
40 </module>
41 <module name="LineLength">
42 <property name="max" value="150"/>
43 <property name="tabWidth" value="4"/>
44 </module>
45 <module name="MethodLength">
46 <property name="max" value="300"/>
47 </module>
48 <module name="ParameterNumber">
49 <property name="max" value="10"/>
50 </module>
51 <module name="OuterTypeNumber"/>
52 <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>
75 </module>
76 <module name="Header">
77 <property name="header" value="// License: GPL. For details, see LICENSE file."/>
78 <property name="fileExtensions" value=".java"/>
79 </module>
80 <module name="FileLength">
81 <property name="fileExtensions" value=".java"/>
82 </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"/>
89</module>
Note: See TracBrowser for help on using the repository browser.