OLD | NEW |
1 <?xml version="1.0" encoding="UTF-8"?> | 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"> | 2 <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http:
//www.puppycrawl.com/dtds/configuration_1_3.dtd"> |
3 | 3 |
4 <!-- | 4 <!-- |
5 See installation instructions: https://sites.google.com/a/chromium.org/dev/che
ckstyle | 5 See installation instructions: https://sites.google.com/a/chromium.org/dev/che
ckstyle |
6 --> | 6 --> |
7 <module name="Checker"> | 7 <module name="Checker"> |
8 <property name="severity" value="warning"/> | 8 <property name="severity" value="warning"/> |
9 <property name="charset" value="UTF-8"/> | 9 <property name="charset" value="UTF-8"/> |
10 <module name="TreeWalker"> | 10 <module name="TreeWalker"> |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 </module> | 131 </module> |
132 <module name="NoWhitespaceAfter"> | 132 <module name="NoWhitespaceAfter"> |
133 <property name="severity" value="error"/> | 133 <property name="severity" value="error"/> |
134 <property name="tokens" value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNA
RY_PLUS"/> | 134 <property name="tokens" value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNA
RY_PLUS"/> |
135 </module> | 135 </module> |
136 <module name="NoWhitespaceBefore"> | 136 <module name="NoWhitespaceBefore"> |
137 <property name="severity" value="error"/> | 137 <property name="severity" value="error"/> |
138 <property name="allowLineBreaks" value="true"/> | 138 <property name="allowLineBreaks" value="true"/> |
139 <property name="tokens" value="SEMI, DOT, POST_DEC, POST_INC"/> | 139 <property name="tokens" value="SEMI, DOT, POST_DEC, POST_INC"/> |
140 </module> | 140 </module> |
| 141 <module name="GenericWhitespace"> |
| 142 <property name="severity" value="error"/> |
| 143 <message key="ws.followed" |
| 144 value="GenericWhitespace ''{0}'' is followed by whitespace."/> |
| 145 <message key="ws.preceded" |
| 146 value="GenericWhitespace ''{0}'' is preceded with whitespace."/> |
| 147 <message key="ws.illegalFollow" |
| 148 value="GenericWhitespace ''{0}'' should followed by whitespace."/> |
| 149 <message key="ws.notPreceded" |
| 150 value="GenericWhitespace ''{0}'' is not preceded with whitespace."/> |
| 151 </module> |
141 <module name="EmptyStatement"> | 152 <module name="EmptyStatement"> |
142 <property name="severity" value="error"/> | 153 <property name="severity" value="error"/> |
143 </module> | 154 </module> |
144 <module name="NoFinalizer"> | 155 <module name="NoFinalizer"> |
145 <property name="severity" value="info"/> | 156 <property name="severity" value="info"/> |
146 </module> | 157 </module> |
147 <module name="ParenPad"> | 158 <module name="ParenPad"> |
148 <property name="severity" value="error"/> | 159 <property name="severity" value="error"/> |
149 </module> | 160 </module> |
150 <module name="MethodParamPad"> | 161 <module name="MethodParamPad"> |
151 <property name="severity" value="error"/> | 162 <property name="severity" value="error"/> |
152 </module> | 163 </module> |
153 <module name="ImportOrder"> | 164 <module name="ImportOrder"> |
154 <property name="severity" value="error"/> | 165 <property name="severity" value="error"/> |
155 <message key="import.ordering" value="Wrong order for {0} import. Use :Jav
aImportOrganize (ECLIM) or Ctrl+Shift+O (Eclipse) to sort imports"/> | 166 <message key="import.ordering" value="Wrong order for {0} import. Use :Jav
aImportOrganize (ECLIM) or Ctrl+Shift+O (Eclipse) to sort imports"/> |
156 <property name="groups" value="android, com, dalvik, gov, junit, libcore,
net, org, java, javax"/> | 167 <property name="groups" value="android, com, dalvik, gov, junit, libcore,
net, org, java, javax"/> |
157 <property name="ordered" value="true"/> | 168 <property name="ordered" value="true"/> |
158 <property name="option" value="top"/> | 169 <property name="option" value="top"/> |
159 <property name="separated" value="true"/> | 170 <property name="separated" value="true"/> |
160 </module> | 171 </module> |
161 <module name="Indentation"> | 172 <module name="Indentation"> |
162 <property name="severity" value="error"/> | 173 <property name="severity" value="error"/> |
163 <property name="basicOffset" value="4"/> | 174 <property name="basicOffset" value="4"/> |
164 <property name="throwsIndent" value="8"/> | 175 <property name="throwsIndent" value="8"/> |
165 <property name="lineWrappingIndentation" value="8"/> | 176 <property name="lineWrappingIndentation" value="8"/> |
166 </module> | 177 </module> |
167 <!-- TODO(aurimas): make OperatorWrap into an error once all the warnings ar
e fixed. --> | 178 <!-- TODO(aurimas): make OperatorWrap into an error once all the warnings ar
e fixed. --> |
168 <module name="OperatorWrap"> | 179 <module name="OperatorWrap"> |
169 <property name="severity" value="warning"/> | 180 <property name="severity" value="error"/> |
170 <property name="option" value="NL" /> | 181 <property name="option" value="NL" /> |
171 <property name="tokens" value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, L
AND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL,
SR, STAR " /> | 182 <property name="tokens" value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, L
AND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL,
SR, STAR " /> |
172 </module> | 183 </module> |
173 <module name="OperatorWrap"> | 184 <module name="OperatorWrap"> |
174 <property name="severity" value="warning"/> | 185 <property name="severity" value="error"/> |
175 <property name="option" value="eol"/> | 186 <property name="option" value="eol"/> |
176 <property name="tokens" value="ASSIGN"/> | 187 <property name="tokens" value="ASSIGN"/> |
177 </module> | 188 </module> |
178 <module name="SeparatorWrap"> | 189 <module name="SeparatorWrap"> |
179 <property name="severity" value="warning"/> | 190 <property name="severity" value="error"/> |
180 <property name="tokens" value="DOT"/> | 191 <property name="tokens" value="DOT"/> |
181 <property name="option" value="nl"/> | 192 <property name="option" value="nl"/> |
182 </module> | 193 </module> |
183 <module name="SeparatorWrap"> | 194 <module name="SeparatorWrap"> |
184 <property name="severity" value="warning"/> | 195 <property name="severity" value="error"/> |
185 <property name="tokens" value="COMMA"/> | 196 <property name="tokens" value="COMMA"/> |
186 <property name="option" value="EOL"/> | 197 <property name="option" value="EOL"/> |
187 </module> | 198 </module> |
188 </module> | 199 </module> |
189 <module name="FileTabCharacter"> | 200 <module name="FileTabCharacter"> |
190 <property name="severity" value="error"/> | 201 <property name="severity" value="error"/> |
191 </module> | 202 </module> |
192 <module name="RegexpSingleline"> | 203 <module name="RegexpSingleline"> |
193 <property name="severity" value="error"/> | 204 <property name="severity" value="error"/> |
194 <property name="format" value="[ \t]+$"/> | 205 <property name="format" value="[ \t]+$"/> |
195 <property name="message" value="Trailing whitespace"/> | 206 <property name="message" value="Trailing whitespace"/> |
196 </module> | 207 </module> |
197 <module name="RegexpHeader"> | 208 <module name="RegexpHeader"> |
198 <property name="severity" value="error"/> | 209 <property name="severity" value="error"/> |
199 <property name="header" value="^// Copyright 20\d\d The Chromium Authors. Al
l rights reserved.$\n^// Use of this source code is governed by a BSD-style lice
nse that can be$\n^// found in the LICENSE file.$"/> | 210 <property name="header" value="^// Copyright 20\d\d The Chromium Authors. Al
l rights reserved.$\n^// Use of this source code is governed by a BSD-style lice
nse that can be$\n^// found in the LICENSE file.$"/> |
200 </module> | 211 </module> |
201 </module> | 212 </module> |
OLD | NEW |