commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thecarlh...@apache.org
Subject [commons-dbutils] 04/09: Add checkstyle suppressions for false positives
Date Sun, 29 Dec 2019 06:08:04 GMT
This is an automated email from the ASF dual-hosted git repository.

thecarlhall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbutils.git

commit 0b4bf6feb2ee367c76604c29160481e4075c4de1
Author: Carl Hall <thecarlhall@apache.org>
AuthorDate: Fri Dec 27 22:51:59 2019 -0800

    Add checkstyle suppressions for false positives
---
 checkstyle-suppressions.xml | 30 ++++++++++++++++++++++++++++++
 pom.xml                     |  2 ++
 2 files changed, 32 insertions(+)

diff --git a/checkstyle-suppressions.xml b/checkstyle-suppressions.xml
new file mode 100644
index 0000000..1002890
--- /dev/null
+++ b/checkstyle-suppressions.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!DOCTYPE suppressions PUBLIC
+        "-//Puppy Crawl//DTD Suppressions 1.0//EN"
+        "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+       http://www.apache.org/licenses/LICENSE-2.0
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<suppressions>
+    <suppress checks="Header" files="NOTICE.txt" />
+    <suppress checks="Header" files="LICENSE.txt" />
+    <suppress checks="Header" files="target/.*" />
+    <suppress checks="HideUtilityClassConstructor" files="DbUtils.java" />
+    <suppress checks="Javadoc" files=".*[/\\]test[/\\].*" />
+    <suppress checks="LineLength" files="AsyncQueryRunner.java" />
+    <suppress checks="LineLength" files="BaseResultSetHandler.java" />
+    <suppress checks="LineLength" files="QueryRunner.java" />
+    <suppress checks="MagicNumber" files=".*[/\\]test[/\\].*" />
+    <suppress checks="MethodName" files=".*[/\\]test[/\\].*" />
+</suppressions>
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 7d01207..9ed67b9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -264,6 +264,8 @@
             <configLocation>${basedir}/checkstyle.xml</configLocation>
             <enableRulesSummary>false</enableRulesSummary>
             <headerLocation>${basedir}/license-header.txt</headerLocation>
+            <suppressionsLocation>${basedir}/checkstyle-suppressions.xml</suppressionsLocation>
+            <suppressionsFileExpression>${basedir}/checkstyle-suppressions.xml</suppressionsFileExpression>
             <failOnViolation>false</failOnViolation>
           </configuration>
           <dependencies>


Mime
View raw message