Skip to content

Commit 162b6a9

Browse files
committed
Add checkstyle suppression filter
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1744734 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2e03eb8 commit 162b6a9

3 files changed

Lines changed: 32 additions & 4 deletions

File tree

checkstyle-suppressions.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!--
4+
Licensed to the Apache Software Foundation (ASF) under one or more
5+
contributor license agreements. See the NOTICE file distributed with
6+
this work for additional information regarding copyright ownership.
7+
The ASF licenses this file to You under the Apache License, Version 2.0
8+
(the "License"); you may not use this file except in compliance with
9+
the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
-->
19+
20+
<!DOCTYPE suppressions PUBLIC
21+
"-//Puppy Crawl//DTD Suppressions 1.0//EN"
22+
"http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">
23+
24+
<suppressions>
25+
<suppress checks="Header" files="LICENSE.txt"/>
26+
<suppress checks="Header" files="NOTICE.txt"/>
27+
</suppressions>

checkstyle.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ limitations under the License.
2424
<module name="Checker">
2525
<property name="localeLanguage" value="en" />
2626

27+
<module name="SuppressionFilter">
28+
<property name="file" value="checkstyle-suppressions.xml"/>
29+
</module>
30+
2731
<!-- Checks whether files end with a new line. -->
2832
<!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
2933
<module name="NewlineAtEndOfFile" />

src/assembly/src.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
<fileSets>
2525
<fileSet>
2626
<includes>
27-
<include>build.properties.sample</include>
28-
<include>build.xml</include>
29-
<include>checkstyle.xml</include>
30-
<include>default.properties</include>
27+
<include>checkstyle*.xml</include>
3128
<include>LICENSE.txt</include>
3229
<include>LICENSE-header.txt</include>
3330
<include>NOTICE.txt</include>

0 commit comments

Comments
 (0)