Saturday, 3 March 2007

Copy and Paste

Copy and pasting code is a sure sign of a problem that you don't want to have. If you are a development team manager or team leader, then I suggest you set up PMD reports across your code and make use of the Copy/Paste Detector.

Adding these reports to your Maven 2 build is easy, but you can also run it from an ANT build or even through the WebStart client.

In an ideal environment, these reports would be generated and published as part of your continuous integration or nightly build process and would therefore be low maintenance and available at all times.

Keeping an eye on these sorts of reports can help you address issues before they become big problems, which is good for everyone involved. FindBugs is another tool you may want to make use of to keep the quality high.

0 comments:

Post a Comment