Repository: avro Updated Branches: refs/heads/master f614e15e6 -> bedf2f21a
AVRO-1838: Java: Update checkstyle to catch trailing whitespace. Added missing files. Project: http://git-wip-us.apache.org/repos/asf/avro/repo Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/bedf2f21 Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/bedf2f21 Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/bedf2f21 Branch: refs/heads/master Commit: bedf2f21a05715c3c1aa3b151329f2368c43c965 Parents: f614e15 Author: Niels Basjes <[email protected]> Authored: Mon May 9 15:57:10 2016 +0200 Committer: Niels Basjes <[email protected]> Committed: Mon May 9 15:57:10 2016 +0200 ---------------------------------------------------------------------- dev-tools/pom.xml | 31 +++++++++ .../main/resources/checkstyle/checkstyle.xml | 70 ++++++++++++++++++++ .../main/resources/checkstyle/suppressions.xml | 26 ++++++++ 3 files changed, 127 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/avro/blob/bedf2f21/dev-tools/pom.xml ---------------------------------------------------------------------- diff --git a/dev-tools/pom.xml b/dev-tools/pom.xml new file mode 100644 index 0000000..cedb95a --- /dev/null +++ b/dev-tools/pom.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + 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. +--> +<project + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.avro</groupId> + <artifactId>dev-tools</artifactId> + <version>1.9.0-SNAPSHOT</version> + + <name>Apache Avro Developer tools</name> + <url>http://avro.apache.org</url> + +</project> + http://git-wip-us.apache.org/repos/asf/avro/blob/bedf2f21/dev-tools/src/main/resources/checkstyle/checkstyle.xml ---------------------------------------------------------------------- diff --git a/dev-tools/src/main/resources/checkstyle/checkstyle.xml b/dev-tools/src/main/resources/checkstyle/checkstyle.xml new file mode 100644 index 0000000..fe5f008 --- /dev/null +++ b/dev-tools/src/main/resources/checkstyle/checkstyle.xml @@ -0,0 +1,70 @@ +<?xml version="1.0"?> + +<!-- + 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. +--> + +<!DOCTYPE module PUBLIC + "-//Puppy Crawl//DTD Check Configuration 1.2//EN" + "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> + + +<module name="Checker"> + <module name="SuppressionFilter"> + <property name="file" value="${checkstyle.suppressions.file}"/> + </module> + + <module name="SuppressionCommentFilter"/> + + <module name="FileTabCharacter"/> + <module name="NewlineAtEndOfFile"> + <property name="lineSeparator" value="lf"/> + </module> + + <module name="TreeWalker"> + <module name="ConstantName"/> + <module name="LocalFinalVariableName"/> + <module name="LocalVariableName"/> + <module name="MemberName"/> + <module name="MethodName"/> + <module name="PackageName"/> + <module name="ParameterName"/> + <module name="StaticVariableName"/> + <module name="TypeName"/> + + <module name="AvoidStarImport"/> + <module name="RedundantImport"/> + <module name="UnusedImports"/> + + <!--<module name="RedundantModifier"/>--> + + <module name="EmptyStatement"/> + <module name="IllegalInstantiation"/> + <module name="SimplifyBooleanExpression"/> + <module name="SimplifyBooleanReturn"/> + + <module name="InterfaceIsType"/> + + <module name="ArrayTypeStyle"/> + <module name="UpperEll"/> + + <module name="Regexp"> + <property name="format" value="[ \t]+$"/> + <property name="illegalPattern" value="true"/> + <property name="message" value="Trailing whitespace"/> + </module> + </module> +</module> http://git-wip-us.apache.org/repos/asf/avro/blob/bedf2f21/dev-tools/src/main/resources/checkstyle/suppressions.xml ---------------------------------------------------------------------- diff --git a/dev-tools/src/main/resources/checkstyle/suppressions.xml b/dev-tools/src/main/resources/checkstyle/suppressions.xml new file mode 100644 index 0000000..c952495 --- /dev/null +++ b/dev-tools/src/main/resources/checkstyle/suppressions.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> + +<!-- + 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. +--> + +<!DOCTYPE suppressions PUBLIC + "-//Puppy Crawl//DTD Suppressions 1.1//EN" + "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> + +<suppressions> + <suppress files=".*[\\/]target[\\/]" checks=".*" /> +</suppressions>
