blob: 1bb40f729827adf6bb21ae14909ffbafb2fe7ab6 [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001<?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: Google Checks for Gerrit
9 Description:
10Checkstyle configuration based on the Google coding conventions (https://google-styleguide.googlecode.com/svn-history/r130/trunk/javaguide.html),
11edited to remove noisy warnings.
12-->
13<module name="Checker">
14 <property name="severity" value="warning"/>
15 <property name="charset" value="UTF-8"/>
16 <module name="TreeWalker">
17 <module name="FileContentsHolder"/>
18 <module name="OuterTypeFilename"/>
19 <module name="LineLength">
20 <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
21 <property name="max" value="150"/>
22 <property name="tabWidth" value="2"/>
23 </module>
24 <module name="OneTopLevelClass"/>
25 <module name="NoLineWrap"/>
26 <module name="EmptyBlock">
27 <property name="option" value="TEXT"/>
28 <property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
29 </module>
30 <module name="NeedBraces"/>
31 <module name="LeftCurly">
32 <property name="maxLineLength" value="150"/>
33 </module>
34 <module name="RightCurly">
35 <property name="option" value="alone"/>
36 <property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT"/>
37 </module>
38 <module name="WhitespaceAround">
39 <property name="severity" value="ignore"/>
40 <property name="allowEmptyConstructors" value="true"/>
41 <property name="allowEmptyMethods" value="true"/>
42 <property name="allowEmptyTypes" value="true"/>
43 <property name="allowEmptyLoops" value="true"/>
44 <message key="ws.notFollowed" value="WhitespaceAround: ''{0}'' is not followed by whitespace."/>
45 <message key="ws.notPreceded" value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
46 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
47 </module>
48 <module name="OneStatementPerLine"/>
49 <module name="MultipleVariableDeclarations"/>
50 <module name="ArrayTypeStyle"/>
51 <module name="UpperEll"/>
52 <module name="ModifierOrder"/>
53 <module name="EmptyLineSeparator">
54 <property name="severity" value="ignore"/>
55 <property name="allowNoEmptyLineBetweenFields" value="true"/>
56 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
57 </module>
58 <module name="SeparatorWrap">
59 <property name="severity" value="ignore"/>
60 <property name="option" value="nl"/>
61 <property name="tokens" value="DOT"/>
62 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
63 </module>
64 <module name="SeparatorWrap">
65 <property name="severity" value="ignore"/>
66 <property name="option" value="EOL"/>
67 <property name="tokens" value="COMMA"/>
68 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
69 </module>
70 <module name="NoFinalizer"/>
71 <module name="GenericWhitespace">
72 <property name="severity" value="ignore"/>
73 <message key="ws.followed" value="GenericWhitespace ''{0}'' is followed by whitespace."/>
74 <message key="ws.illegalFollow" value="GenericWhitespace ''{0}'' should followed by whitespace."/>
75 <message key="ws.preceded" value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
76 <message key="ws.notPreceded" value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
77 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
78 </module>
79 <module name="Indentation">
80 <property name="severity" value="ignore"/>
81 <property name="basicOffset" value="2"/>
82 <property name="caseIndent" value="2"/>
83 <property name="arrayInitIndent" value="2"/>
84 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
85 </module>
86 <module name="MethodParamPad">
87 <property name="severity" value="ignore"/>
88 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
89 </module>
90 <module name="OperatorWrap">
91 <property name="severity" value="ignore"/>
92 <property name="option" value="NL"/>
93 <property name="tokens" value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR "/>
94 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
95 </module>
96 </module>
97 <module name="FileTabCharacter">
98 <property name="severity" value="ignore"/>
99 <property name="eachLine" value="true"/>
100 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
101 </module>
102 <module name="SuppressWithNearbyCommentFilter">
103 <property name="commentFormat" value="CS IGNORE (\w+) FOR NEXT (\d+) LINES\. REASON\: \w+"/>
104 <property name="checkFormat" value="$1"/>
105 <property name="influenceFormat" value="$2"/>
106 </module>
107 <module name="SuppressionFilter">
108 <property name="file" value="${samedir}/checkstyle_suppressions.xml"/>
109 </module>
110</module>