commit 3b806a4833601e226c4202e30d248d55927f939b Author: Trustin Lee Date: Wed Jan 11 20:36:30 2012 +0900 Initial import diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..00ec325 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +.project +.classpath +.settings +*.iml +*.ipr +*.iws +.geany +/target +*/target +/reports +*/reports + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..ee51418 --- /dev/null +++ b/pom.xml @@ -0,0 +1,77 @@ + + + + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + + io.netty + netty-build + jar + 1-SNAPSHOT + + Netty/Build + + http://netty.io/ + + Resources required to build Netty + + + + The Netty Project + http://netty.io/ + + + + + Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0 + + + 2008 + + + https://github.com/netty/netty + scm:git:git://github.com/netty/netty.git + scm:git:ssh://git@github.com/netty/netty.git + + + + + netty.io + The Netty Project Contributors + netty@googlegroups.com + http://netty.io/ + The Netty Project + http://netty.io/ + + + + + + com.puppycrawl.tools + checkstyle + 5.5 + + + + diff --git a/src/main/java/io/netty/build/checkstyle/SuppressionFilter.java b/src/main/java/io/netty/build/checkstyle/SuppressionFilter.java new file mode 100644 index 0000000..86db7aa --- /dev/null +++ b/src/main/java/io/netty/build/checkstyle/SuppressionFilter.java @@ -0,0 +1,23 @@ +package io.netty.build.checkstyle; + +import java.util.regex.Pattern; + +import com.puppycrawl.tools.checkstyle.api.AuditEvent; +import com.puppycrawl.tools.checkstyle.api.AutomaticBean; +import com.puppycrawl.tools.checkstyle.api.Filter; +import com.puppycrawl.tools.checkstyle.api.FilterSet; + +public class SuppressionFilter extends AutomaticBean implements Filter { + + private FilterSet filters = new FilterSet(); + private Pattern pattern; + + public void setPattern(String pattern) { + this.pattern = Pattern.compile(pattern); + } + + @Override + public boolean accept(AuditEvent evt) { + return !pattern.matcher(evt.getFileName()).find(); + } +} diff --git a/src/main/resources/io/netty/checkstyle.xml b/src/main/resources/io/netty/checkstyle.xml new file mode 100644 index 0000000..2c49ccb --- /dev/null +++ b/src/main/resources/io/netty/checkstyle.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +