source: osm/applications/viewer/jmapviewer/tools/checkstyle/jmapviewer_checks.xml@ 32390

Last change on this file since 32390 was 32390, checked in by donvip, 8 years ago

checkstyle: enable SingleSpaceSeparator

File size: 4.9 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: JMapViewer
9 Description:
10JMapViewer 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="150"/>
39 <property name="tokens" value="INSTANCE_INIT,STATIC_INIT,METHOD_DEF,CTOR_DEF"/>
40 </module>
41 <module name="LineLength">
42 <property name="max" value="145"/>
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="SingleSpaceSeparator"/>
59 <module name="MethodParamPad"/>
60 <module name="ParenPad"/>
61 <module name="TypecastParenPad">
62 <property name="tokens" value="RPAREN,TYPECAST"/>
63 </module>
64 <module name="WhitespaceAfter"/>
65 <module name="WhitespaceAround">
66 <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"/>
67 <property name="allowEmptyConstructors" value="true"/>
68 <property name="allowEmptyMethods" value="true"/>
69 <property name="allowEmptyTypes" value="true"/>
70 </module>
71 <module name="EmptyLineSeparator">
72 <property name="tokens" value="CLASS_DEF,ENUM_DEF,INTERFACE_DEF,CTOR_DEF,METHOD_DEF,STATIC_INIT"/>
73 <property name="allowNoEmptyLineBetweenFields" value="true"/>
74 <property name="allowMultipleEmptyLines" value="false"/>
75 </module>
76 <module name="ModifierOrder"/>
77 <module name="RedundantModifier"/>
78 <module name="AvoidNestedBlocks">
79 <property name="allowInSwitchCase" value="true"/>
80 </module>
81 <module name="EmptyBlock">
82 <property name="tokens" value="LITERAL_TRY,LITERAL_CATCH,LITERAL_FINALLY,LITERAL_DO,LITERAL_ELSE,LITERAL_FOR,INSTANCE_INIT,STATIC_INIT,LITERAL_SWITCH"/>
83 </module>
84 <module name="EmptyCatchBlock"/>
85 <module name="LeftCurly">
86 <property name="maxLineLength" value="140"/>
87 </module>
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>
93 <module name="ArrayTypeStyle"/>
94 <module name="UpperEll"/>
95 <module name="OuterTypeFilename"/>
96 <module name="FinalClass"/>
97 <module name="HideUtilityClassConstructor"/>
98 </module>
99 <module name="Header">
100 <property name="header" value="// License: GPL. For details, see Readme.txt file."/>
101 <property name="fileExtensions" value=".java"/>
102 </module>
103 <module name="FileLength">
104 <property name="fileExtensions" value=".java"/>
105 </module>
106 <module name="SuppressionCommentFilter">
107 <property name="offCommentFormat" value="CHECKSTYLE\.OFF\: ([\w\|]+)"/>
108 <property name="onCommentFormat" value="CHECKSTYLE\.ON\: ([\w\|]+)"/>
109 <property name="checkFormat" value="$1"/>
110 </module>
111 <module name="FileTabCharacter"/>
112 <module name="NewlineAtEndOfFile">
113 <property name="lineSeparator" value="lf"/>
114 </module>
115 <module name="SuppressionFilter">
116 <property name="file" value="${basedir}/tools/checkstyle/jmapviewer_filters.xml"/>
117 </module>
118</module>
Note: See TracBrowser for help on using the repository browser.