debian/0000755000000000000000000000000012141564264007173 5ustar debian/libcodenarc-groovy-java.links0000644000000000000000000000007712141564127014746 0ustar usr/share/java/CodeNarc.jar usr/share/groovy/lib/CodeNarc.jar debian/rules0000755000000000000000000000102712141564127010251 0ustar #!/usr/bin/make -f export JAVA_HOME=/usr/lib/jvm/default-java %: dh $@ --with javahelper override_jh_build: ant -f debian/build.xml override_jh_clean: jh_clean ant -f debian/build.xml clean mh_clean override_dh_install: dh_install mh_installpoms -plibcodenarc-groovy-java mh_installjar -plibcodenarc-groovy-java -l pom.xml target/CodeNarc.jar get-orig-source: cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \ uscan \ --verbose \ --rename \ --destdir $(CURDIR) \ --watchfile debian/watch \ --force-download debian/watch0000644000000000000000000000011512141564127010217 0ustar version=3 http://sf.net/codenarc/CodeNarc-(.+)-bin\.tar\.gz debian jh_repack debian/build.xml0000644000000000000000000000270612141564127011017 0ustar debian/changelog0000644000000000000000000000334112141564127011044 0ustar codenarc (0.17-2) unstable; urgency=low * Upload to unstable. * d/control: Remove DM-Upload-Allowed flag. * d/control: Bump Standards-Version to 3.9.4 (no changes needed). * d/control: Use canonical URL for Vcs-* fields. -- Damien Raude-Morvan Mon, 06 May 2013 01:14:21 +0200 codenarc (0.17-1) experimental; urgency=low * New upstream release. * Add myself as Uploaders. * d/patches/gmetrics_interface_sourcecode.diff: Drop, fixed upstream. * d/patches/groovy_18.diff: Fix Groovy 1.8 compat. * d/classpath-debian: Add ant.jar. * d/build.{xml,properties}: Small directory fixes for new upstream. -- Damien Raude-Morvan Mon, 20 Aug 2012 23:06:53 +0200 codenarc (0.13-2) unstable; urgency=low [ Miguel Landaeta] * Fix FTBFS error due to changes in GMetrics library. (Closes: #655807). * Bump Standards-Version to 3.9.3. No changes were required. * Update copyright file. [ tony mancill ] * Set DMUA flag. -- Miguel Landaeta Fri, 15 Jun 2012 19:19:49 -0430 codenarc (0.13-1) unstable; urgency=low * New upstream release. * Bump Standards-Version to 3.9.2. No changes were required. * Update copyright dates and make it DEP-5 compliant. * Correctly order dh7 call helper parameters. * Enable jh_depends during build since is working again. * Set Class-Path in CodeNarc jar. -- Miguel Landaeta Wed, 11 May 2011 20:28:17 -0430 codenarc (0.11-1) UNRELEASED; urgency=low * New upstream release. -- Miguel Landaeta Mon, 27 Dec 2010 20:29:36 -0430 codenarc (0.9-1) unstable; urgency=low * Initial release. (Closes: #593797). -- Miguel Landaeta Sat, 21 Aug 2010 17:53:41 -0430 debian/maven.ignoreRules0000644000000000000000000000007512141564127012521 0ustar org.codehaus.groovy.maven.runtime gmaven-runtime-1.5 * * * * debian/compat0000644000000000000000000000000212141564127010367 0ustar 7 debian/libcodenarc-groovy-java-doc.javadoc0000644000000000000000000000007412141564127015775 0ustar target/groovydoc usr/share/doc/libcodenarc-groovy-java/api debian/build.properties0000644000000000000000000000015412141564127012406 0ustar dir.resources=../src/main/resources dir.build=../target dir.src=../src/main target=1.5 source=1.5 debug=on debian/source/0000755000000000000000000000000012141564127010471 5ustar debian/source/format0000644000000000000000000000001412141564127011677 0ustar 3.0 (quilt) debian/maven.rules0000644000000000000000000000010712141564127011351 0ustar junit junit jar s/3\..*/3.x/ * * log4j log4j jar s/1\.2\..*/1.2.x/ * * debian/patches/0000755000000000000000000000000012141564127010620 5ustar debian/patches/groovy_18.diff0000644000000000000000000000525212141564127013313 0ustar Description: Fix compat with Groovy 1.8 RegexExpression and method GroovyCodeVisitor.visitRegexExpression(RegexExpression expression) was removed in 1.8 Author: Damien Raude-Morvan Last-Update: 2012-08-29 Forwarded: no --- a/src/main/groovy/org/codenarc/results/FileResults.groovy +++ b/src/main/groovy/org/codenarc/results/FileResults.groovy @@ -63,7 +63,7 @@ * @param recursive - true if the returned count should include subdirectories as well; defaults to true * @return the number of violations with the specified priority */ - @Override + //@Override int getNumberOfViolationsWithPriority(int priority, boolean recursive=true) { violations.sum(0) { violation -> violation.rule.priority == priority ? 1 : 0} } @@ -73,7 +73,7 @@ * @param recursive - true if the returned count should include subdirectories as well * @return the total number of files (with or without violations) */ - @Override + //@Override int getTotalNumberOfFiles(boolean recursive=true) { 1 } @@ -83,7 +83,7 @@ * @param recursive - ignored; defaults to true * @return the number of files containing violations */ - @Override + //@Override int getNumberOfFilesWithViolations(boolean recursive=true) { violations.empty ? 0 : 1 } @@ -100,4 +100,4 @@ String toString() { "FileResults($path) $violations" } -} \ No newline at end of file +} --- a/src/main/java/org/codenarc/rule/AbstractFieldVisitor.java +++ b/src/main/java/org/codenarc/rule/AbstractFieldVisitor.java @@ -404,7 +404,7 @@ throw new UnsupportedOperationException(); } - @Override + //@Override public final void visitRegexExpression(RegexExpression expression) { throw new UnsupportedOperationException(); } --- a/src/main/java/org/codenarc/rule/AbstractMethodCallExpressionVisitor.java +++ b/src/main/java/org/codenarc/rule/AbstractMethodCallExpressionVisitor.java @@ -399,9 +399,9 @@ super.visitFieldExpression(expression); } - @Override + //@Override public final void visitRegexExpression(RegexExpression expression) { - super.visitRegexExpression(expression); + //super.visitRegexExpression(expression); } @Override --- a/src/main/java/org/codenarc/rule/AbstractMethodVisitor.java +++ b/src/main/java/org/codenarc/rule/AbstractMethodVisitor.java @@ -432,7 +432,7 @@ throw new UnsupportedOperationException(); } - @Override + //@Override public final void visitRegexExpression(RegexExpression expression) { throw new UnsupportedOperationException(); } debian/patches/series0000644000000000000000000000001712141564127012033 0ustar groovy_18.diff debian/libcodenarc-groovy-java.poms0000644000000000000000000000001012141564127014567 0ustar pom.xml debian/classpath-debian0000644000000000000000000000015612141564127012320 0ustar usr/share/java/ant.jar usr/share/java/groovy-all.jar usr/share/java/log4j-1.2.jar usr/share/java/GMetrics.jar debian/control0000644000000000000000000000442412141564127010600 0ustar Source: codenarc Maintainer: Debian Java Maintainers Uploaders: Miguel Landaeta , Damien Raude-Morvan Section: java Priority: optional Build-Depends: ant, debhelper (>= 7.0.50~), default-jdk, default-jdk-doc, groovy, javahelper, libgmetrics-groovy-java, liblog4j1.2-java, maven-repo-helper Standards-Version: 3.9.4 Homepage: http://codenarc.sourceforge.net/ Vcs-Git: git://anonscm.debian.org/pkg-java/codenarc.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/codenarc.git Package: libcodenarc-groovy-java Architecture: all Depends: ant, groovy, libgmetrics-groovy-java, liblog4j1.2-java, ${misc:Depends} Suggests: libcodenarc-groovy-java-doc Description: Groovy library that provides static analysis features for Groovy code CodeNarc is a static analysis tool for Groovy source code, enabling monitoring and enforcement of many coding standards and best practices. CodeNarc applies a set of Rules (predefined and/or custom) that are applied to each Groovy file, and generates an HTML report of the results, including a list of rules violated for each source file, and a count of the number of violations per package and for the whole project. . CodeNarc is similar to popular static analysis tools such as PMD or Checkstyle, but is targeted at Groovy source code instead of Java. Package: libcodenarc-groovy-java-doc Architecture: all Section: doc Depends: ${misc:Depends} Recommends: libcodenarc-groovy-java Suggests: default-jdk-doc Description: Documentation for libcodenarc-groovy-java Documentation for CodeNarc that is a static analysis tool for Groovy source code, enabling monitoring and enforcement of many coding standards and best practices. CodeNarc applies a set of Rules (predefined and/or custom) that are applied to each Groovy file, and generates an HTML report of the results, including a list of rules violated for each source file, and a count of the number of violations per package and for the whole project. . CodeNarc is similar to popular static analysis tools such as PMD or Checkstyle, but is targeted at Groovy source code instead of Java. debian/copyright0000644000000000000000000000205112141564127011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: CodeNarc Upstream-Contact: Chris Mair Source: http://sourceforge.net/projects/codenarc/files/ Files: * Copyright: © 2008-2011, Chris Mair , © 2008-2011, Hamlet D'Arcy License: Apache-2.0 Files: debian/* Copyright: © 2010-2011, Miguel Landaeta License: Apache-2.0 License: Apache-2.0 Licensed 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 /usr/share/common-licenses/Apache-2.0 (on Debian systems) . 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.