|
2 | 2 | <!DOCTYPE module PUBLIC |
3 | 3 | "-//Puppy Crawl//DTD Check Configuration 1.3//EN" |
4 | 4 | "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> |
| 5 | +<!-- |
| 6 | + Copyright 2016 Google Inc. All Rights Reserved. |
| 7 | +
|
| 8 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | + you may not use this file except in compliance with the License. |
| 10 | + You may obtain a copy of the License at |
| 11 | +
|
| 12 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | +
|
| 14 | + Unless required by applicable law or agreed to in writing, software |
| 15 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | + See the License for the specific language governing permissions and |
| 18 | + limitations under the License. |
| 19 | +--> |
5 | 20 |
|
6 | 21 | <!-- |
7 | 22 | Checkstyle configuration that checks the Google coding conventions from: |
|
14 | 29 | Most Checks are configurable, be sure to consult the documentation. |
15 | 30 | To completely disable a check, just comment it out or delete it from the file. |
16 | 31 | Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov. |
17 | | -
|
18 | 32 | --> |
19 | | - |
20 | 33 | <module name = "Checker"> |
21 | 34 | <property name="charset" value="UTF-8"/> |
22 | 35 |
|
|
25 | 38 | <property name="fileExtensions" value="java, properties, xml"/> |
26 | 39 | <!-- Checks for whitespace --> |
27 | 40 | <!-- See http://checkstyle.sf.net/config_whitespace.html --> |
28 | | - <module name="FileTabCharacter"> |
29 | | - <property name="eachLine" value="true"/> |
30 | | - </module> |
| 41 | + <module name="FileTabCharacter"> |
| 42 | + <property name="eachLine" value="true"/> |
| 43 | + </module> |
31 | 44 |
|
32 | 45 | <module name="TreeWalker"> |
| 46 | + <!-- Make @SuppressWarnings available to checkstyle http://stackoverflow.com/a/22556386/101923 --> |
| 47 | + <module name="SuppressWarningsHolder" /> |
33 | 48 | <module name="UnusedImports"/> |
34 | 49 | <module name="OuterTypeFilename"/> |
35 | 50 | <module name="IllegalTokenText"> |
|
179 | 194 | </module> |
180 | 195 | <module name="JavadocMethod"> |
181 | 196 | <property name="scope" value="public"/> |
| 197 | + <property name="allowMissingJavadoc" value="true"/> |
182 | 198 | <property name="allowMissingParamTags" value="true"/> |
183 | 199 | <property name="allowMissingThrowsTags" value="true"/> |
184 | 200 | <property name="allowMissingReturnTag" value="true"/> |
|
198 | 214 | <property name="exceptionVariableName" value="expected"/> |
199 | 215 | </module> |
200 | 216 | </module> |
| 217 | + |
| 218 | + <!-- Allow silencing rules with annotations http://stackoverflow.com/a/22556386/101923 --> |
| 219 | + <module name="SuppressWarningsFilter" /> |
201 | 220 | </module> |
0 commit comments