Skip to content

Commit bd3e366

Browse files
committed
add suppress warnings
1 parent 9ffd5ae commit bd3e366

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

config/checkstyle/checkstyle.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,18 @@
4545
<!--################ Non-AST checks ################-->
4646
<!--################################################-->
4747

48+
<module name="SuppressWarningsFilter" />
49+
4850
<module name="TreeWalker">
4951

5052
<!--#################################################################-->
5153
<!--################ NAMING CHECKS ##################################-->
5254
<!--#################################################################-->
5355

56+
<module name="SuppressWarningsHolder" />
57+
<module name="SuppressWarnings">
58+
<property name="id" value="checkstyle:suppresswarnings"/>
59+
</module>
5460

5561
<!-- allow the dev to switch the checker OFF in a single file or a method -->
5662
<!-- <module name="SuppressionCommentFilter"/> -->
@@ -389,7 +395,9 @@
389395
https://source.android.com/source/code-style.html#use-javadoc-standard-comments
390396
-->
391397
<module name="JavadocMethod">
392-
<property name="scope" value="public"/>
398+
<property name="id" value="checkstyle:javadocmethod"/>
399+
400+
<property name="scope" value="public" />
393401

394402
<!-- exception: property methods (getX, setX, isX) -->
395403
<property name="allowMissingPropertyJavadoc" value="true"/>
@@ -412,6 +420,8 @@
412420

413421
<!-- Javadoc required for public fields (part of API) -->
414422
<module name="JavadocVariable">
423+
<property name="id" value="checkstyle:javadocvariable"/>
424+
415425
<property name="scope" value="public"/>
416426
</module>
417427

0 commit comments

Comments
 (0)