added cpd findings (duplicated code)

This commit is contained in:
Osmand 2012-01-11 01:23:20 +01:00
parent 341745a70a
commit eb5618cf88
10 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,4 @@
bin/
build/
build.zip
cpd.xml

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -105,4 +105,13 @@
<delete file="OsmAndMapCreator.jar" />
</target>
<taskdef name="cpd" classname="net.sourceforge.pmd.cpd.CPDTask" classpathref="ant.lib.path"/>
<target name="cpd" description="Search for cut-and-pasted code">
<property name="cpd.report.xml" location="cpd.xml"/>
<cpd minimumTokenCount="100" format="xml" outputFile="${cpd.report.xml}"
ignoreLiterals="true" ignoreIdentifiers="true">
<fileset dir="${src.absolute.dir}" includes="**/*.java"/>
</cpd>
</target>
</project>

1
OsmAnd/.gitignore vendored
View file

@ -3,3 +3,4 @@ gen/
local.properties
raw/
obj/
cpd.xml

BIN
OsmAnd/ant-lib/asm-3.2.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -260,6 +260,16 @@
<antcall target="debug"/>
</target>
<taskdef name="cpd" classname="net.sourceforge.pmd.cpd.CPDTask" classpathref="lib.path"/>
<target name="cpd" description="Search for cut-and-pasted code">
<property name="cpd.report.xml" location="cpd.xml"/>
<cpd minimumTokenCount="100" format="xml" outputFile="${cpd.report.xml}"
ignoreLiterals="true" ignoreIdentifiers="true">
<fileset dir="${source.absolute.dir}" includes="**/*.java"/>
</cpd>
</target>
<!-- NOT used now for night builds could be deleted -->
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="lib.path" />