added cpd findings (duplicated code)
This commit is contained in:
parent
341745a70a
commit
eb5618cf88
10 changed files with 21 additions and 0 deletions
1
DataExtractionOSM/.gitignore
vendored
1
DataExtractionOSM/.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
bin/
|
||||
build/
|
||||
build.zip
|
||||
cpd.xml
|
||||
|
|
BIN
DataExtractionOSM/ant-lib/asm-3.2.jar
Normal file
BIN
DataExtractionOSM/ant-lib/asm-3.2.jar
Normal file
Binary file not shown.
BIN
DataExtractionOSM/ant-lib/jaxen-1.1.1.jar
Normal file
BIN
DataExtractionOSM/ant-lib/jaxen-1.1.1.jar
Normal file
Binary file not shown.
BIN
DataExtractionOSM/ant-lib/pmd-4.2.6.jar
Normal file
BIN
DataExtractionOSM/ant-lib/pmd-4.2.6.jar
Normal file
Binary file not shown.
|
@ -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
1
OsmAnd/.gitignore
vendored
|
@ -3,3 +3,4 @@ gen/
|
|||
local.properties
|
||||
raw/
|
||||
obj/
|
||||
cpd.xml
|
||||
|
|
BIN
OsmAnd/ant-lib/asm-3.2.jar
Normal file
BIN
OsmAnd/ant-lib/asm-3.2.jar
Normal file
Binary file not shown.
BIN
OsmAnd/ant-lib/jaxen-1.1.1.jar
Normal file
BIN
OsmAnd/ant-lib/jaxen-1.1.1.jar
Normal file
Binary file not shown.
BIN
OsmAnd/ant-lib/pmd-4.2.6.jar
Normal file
BIN
OsmAnd/ant-lib/pmd-4.2.6.jar
Normal file
Binary file not shown.
|
@ -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" />
|
||||
|
||||
|
|
Loading…
Reference in a new issue