Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1463)

Unified Diff: third_party/checkstyle/suppressions.xml

Issue 451313002: Add and start using Checkstyle 5.7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/checkstyle/suppressions.xml
diff --git a/third_party/checkstyle/suppressions.xml b/third_party/checkstyle/suppressions.xml
new file mode 100644
index 0000000000000000000000000000000000000000..0298f550e9841f7674459fd051f81bb77350be1d
--- /dev/null
+++ b/third_party/checkstyle/suppressions.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+
+<!DOCTYPE suppressions PUBLIC
+ "-//Puppy Crawl//DTD Suppressions 1.1//EN"
+ "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
+
+<suppressions>
+ <suppress checks="FileLength"
+ files="TokenTypes.java"
+ lines="1"/>
+ <suppress checks="MagicNumber"
+ files="UnusedPrivateMethodCheck.java"
+ lines="176"/>
+ <suppress checks="ImportControl"
+ files="NewlineAtEndOfFileCheck.java"
+ lines="27"/>
+ <suppress checks="ImportControl"
+ files="TranslationCheck.java"
+ lines="24"/>
+ <suppress checks="ImportControl"
+ files="SuppressionCommentFilter.java"
+ lines="28"/>
+ <suppress checks="ImportControl"
+ files="SuppressWarningsFilter.java"
+ lines="24"/>
+ <suppress checks="ImportControl"
+ files="SuppressWithNearbyCommentFilter.java"
+ lines="28"/>
+ <suppress id="paramNum"
+ files="LocalizedMessage.java"
+ lines="141,148,181,213"/>
+
+ <!-- Tone down the checking for test code -->
+ <suppress checks="EmptyBlock" files=".*[\\/]src[\\/]tests[\\/]"/>
+ <suppress checks="ImportControl" files=".*[\\/]src[\\/]tests[\\/]"/>
+ <suppress checks="Javadoc" files=".*[\\/]src[\\/]tests[\\/]"/>
+ <suppress checks="MagicNumber" files=".*[\\/]src[\\/]tests[\\/]"/>
+ <suppress checks="MethodCount" files="[\\/]IndentationCheckTest.java$"/>
+ <suppress checks="EqualsAvoidNull" files="[\\/]Int.*FilterTest.java$"/>
+
+ <!-- suppressions to remove over time -->
+ <suppress checks="FinalLocalVariable" files=".*[\\/]src[\\/]tests[\\/]"/>
+ <suppress checks="LineLength" files=".*[\\/]src[\\/]tests[\\/]"/>
+ <suppress checks="Name" files=".*[\\/]src[\\/]tests[\\/]"/>
+
+ <!--
+ Turn off all checks for Generated and Test code. Fixes issues with using
+ Eclipse plug-in.
+ -->
+ <suppress checks="." files=".*[\\/]grammars[\\/]Generated[a-zA-Z]*\.java"/>
+ <suppress checks="." files=".*[\\/]grammars[\\/]Generated[a-zA-Z]*\.java"/>
+ <suppress checks="." files=".*[\\/]checkstyle[\\/]gui[\\/]"/>
+</suppressions>

Powered by Google App Engine
This is Rietveld 408576698