Plugin Information
This plugin generates the trend report for duplicate code checkers like CPD or Simian.
Description
The DRY principle (don't repeat yourself) of the pragmatic programmers states that every piece of system knowledge should have one authoritative, unambiguous representation. The dry plug-in helps you to adhere to this principle by showing you the duplicate code blocks in your project. This plug-in does not scan for duplicate code by itself; it only shows the results of duplicate code checker tools. Currently CPD and Simian are supported. This plug-in is part of the suite of static code analysis plug-ins that are documented on a separate WIKI page. The following features are provided by this plug-in:
The current release is available in the download section. This plug-in is developed and maintained by Ullrich Hafner. Please use the mailing lists or issue tracker to ask questions, create feature request or bug reports, since I don't read the comment section on this page regularly. ChangeLogYou can support the development of this open source plug-in by buying my Android game Inca Trails in Google Play! Release 2.41
Release 2.42
Release 2.39
Release 2.38
Release 2.37
Release 2.36
Release 2.35
Release 2.34
Release 2.33
Release 2.32
Release 2.31
Release 2.30
Release 2.29
Release 2.28
Release 2.27
Release 2.26
Release 2.25
Release 2.24
Release 2.23
Release 2.22
Release 2.21
Release 2.20
Release 2.19
Release 2.18
Release 2.17
Release 2.16
Release 2.15
Release 2.14
Release 2.13
Release 2.12
Release 2.11
Release 2.10
Release 2.9
Release 2.8
Release 2.7
Release 2.6
Release 2.5
Release 2.4
Release 2.3
Release 2.2
Release 2.1
Release 2.0
|
DRY Plugin
Skip to end of metadata
Go to start of metadata


Comments (8)
Jan 07, 2009
Radek says:
Thanks for that, it will be very useful in my company. I really love such repor...Thanks for that, it will be very useful in my company.
I really love such reports plugins, however this plugin seems to cause a problem within displaying hudson job configuration view. Ff's firebug says there are too much recursion of following javascript line.
window.onload = function() { if(oldOnLoadFordryDefaultEncoding) oldOnLoadFordryDefaultEncoding();That problem refers also latest versions of checkstyle, pmd, findbugs and varnings plugins.
Jan 08, 2009
Ulli Hafner says:
This is a know problem due if the plug-ins are used together with the build-prom...This is a know problem due if the plug-ins are used together with the build-promotion plug-in: see issue #2781
Dec 07, 2009
resvoe - says:
The tool is very usefull and looks better than the violations report. But with ...The tool is very usefull and looks better than the violations report.
But with version 2.0 I can no more see, where the duplication comes from. Knowing that some code is duplicated is helpfull but for legacy applications with lots of duplicated code it helps to know which files to compare.
Dec 08, 2009
Ulli Hafner says:
Hmm, that seems to be a bug. Can you please create a new issue in our Jira track...Hmm, that seems to be a bug. Can you please create a new issue in our Jira tracker?
Dec 11, 2009
resvoe - says:
done issue #5034done issue #5034
Sep 26, 2011
Felix Petriconi says:
Note: Under Windows Server 2003 / 7 x64 the DRY plugin prefers the XML-report i...Note:
Under Windows Server 2003 / 7 x64 the DRY plugin prefers the XML-report in ISO-8859-1 format and not in CP-1252. So set the encoding of cpd to this format.
With Ant and C++ code as executor this is the command:
Jan 10, 2013
Eric Brito says:
Something is causing my build to fail. This started after I installed DRY. her...Something is causing my build to fail.
This started after I installed DRY.
here's the console output:DRY Collecting duplicate code analysis files...
DRY Finding all files that match the pattern simian.xml
DRY Parsing 1 files in C:\Jenkins\jobs\QiBuilder\workspace
DRY Successfully parsed file C:\Jenkins\jobs\QiBuilder\workspace\simian.xml of module with 10404 warnings.
FATAL: null
java.lang.StackOverflowError
at sun.nio.cs.UTF_8.updatePositions(Unknown Source)
at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(Unknown Source)
at sun.nio.cs.UTF_8$Encoder.encodeLoop(Unknown Source)
at java.nio.charset.CharsetEncoder.encode(Unknown Source)
at sun.nio.cs.StreamEncoder.implWrite(Unknown Source)
at sun.nio.cs.StreamEncoder.write(Unknown Source)
at java.io.OutputStreamWriter.write(Unknown Source)
at java.io.BufferedWriter.flushBuffer(Unknown Source)
at java.io.BufferedWriter.flush(Unknown Source)
at hudson.util.AtomicFileWriter.flush(AtomicFileWriter.java:90)(removed the rest of the 1000+ lines)
I've created an issue with the XML file included: https://issues.jenkins-ci.org/browse/JENKINS-16298
Mar 02
Jamil Ahmed says:
Is there a way to send out notifications of "new" instances of code duplication?...Is there a way to send out notifications of "new" instances of code duplication? I noticed there's a new tab on the page, and I wanted to extract that information to put into an email notification. However, there is no such information in the XML file generated by phpcpd, so I'm wondering how you calculate new violations.
Add Comment