Skip to content

Commit

Permalink
Disable Checkstyle checks on auto-generated files.
Browse files Browse the repository at this point in the history
Add a check to ignore changes to automatically generated classes.

Bug: None
Test: Tried to run checkstyle locally on a file that containted the comment
      and checkstyle script showed no warnings even though that file had issues.
Change-Id: If9085948f1c224dbb53255b2ba1601511ef769dd
  • Loading branch information
liutikas committed Sep 20, 2016
1 parent f32000d commit b40478c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/checkstyle/android-style.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<property name="onCommentFormat" value="CHECKSTYLE:ON IndentationCheck"/>
<property name="checkFormat" value="IndentationCheck"/>
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE:OFF Generated code"/>
<property name="onCommentFormat" value="CHECKSTYLE:ON Generated code"/>
</module>
<module name="TreeWalker">
<module name="AvoidStarImport">
<property name="severity" value="error"/>
Expand Down

0 comments on commit b40478c

Please sign in to comment.