6595 Commits

Author SHA1 Message Date
Freddy Mallet
0c56454746 Move unit test resources to the standard src/test/resources directory
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7513 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-04 10:35:21 +00:00
Freddy Mallet
1397774c6f Keep on migrating some files to src/main/resources and remove useless and empty directories
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7512 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-03 23:29:02 +00:00
Freddy Mallet
e3a371d1fe Move the 'rulesets' direcctory into the standard src/main/resources directory
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7511 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-03 23:09:07 +00:00
Freddy Mallet
531d322cb1 Remove the root 'test' directory from the unit test packages
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7510 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-03 13:40:36 +00:00
Freddy Mallet
f4c833b3a5 Move the 'regress' unit test directory to the standard 'src/test/java' directory
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7509 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-03 12:59:00 +00:00
Freddy Mallet
0be54d04e0 Add the properties quiet='true' to the Ant delete tasks to be able to build the pmd project out-of-the-box without any required manual operations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7508 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-03 12:38:09 +00:00
Brian Remedios
1b43936562 minor refactorings, tweak
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7507 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-02 07:50:29 +00:00
Romain Pelisse
0a65ddcc2f pmd (build): Adapt build to new layout for xdocs files
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7506 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-01 09:39:29 +00:00
Romain Pelisse
f92f6f3447 pmd (build): Enhance pmd-build logging
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7505 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-01 09:38:59 +00:00
Romain Pelisse
67ea0dbd1a pmd (build): Make path to rulesets configurable for java rulesets
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7504 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-01 09:38:06 +00:00
Romain Pelisse
74a5a652d1 pmd (build): Move all xdocs files to src/site/xdocs
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7503 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-01 09:37:28 +00:00
Romain Pelisse
d29cbda18c pmd (build): whitespaces
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7502 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-01 09:32:17 +00:00
Romain Pelisse
d013e0472c pmd: Minor refactoring - reduce code duplication
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7501 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-30 20:11:10 +00:00
Brian Remedios
ac925c4cac Revised CSVRenderer to allow end user control over which columns are shown, a test implementation of the new property system on the renderers.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7500 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-28 05:05:10 +00:00
Brian Remedios
c350ab821c Adaptations for file processor changes in PMD proper
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7499 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-28 03:53:34 +00:00
Brian Remedios
357dbe8ca3 Adaptations for file processor changes in PMD proper along with some warning suppression tags
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7498 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-28 03:52:16 +00:00
Brian Remedios
78a689e43a bugfix for 'unselectable' language version comboboxes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7497 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-28 03:44:54 +00:00
Brian Remedios
a490e89fd0 Formatting/indentations fixed, XPathRule adaptations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7496 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-27 05:25:10 +00:00
Brian Remedios
fd62448b91 Various:
* IDE adaptations (see new interface and empty method in PMD, comments requested)
	* Further refactoring of benchmark and processor classes

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7495 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-27 05:20:20 +00:00
Brian Remedios
7df1682f3f bugfix for missing ruleset.properties in final jar
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7494 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-27 04:46:55 +00:00
Brian Remedios
3f4d8db8c3 minor XPathRule improvements
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7493 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-26 22:28:27 +00:00
Brian Remedios
72e1b5dd42 refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7492 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-26 17:23:19 +00:00
Steven Christou
c4e94219b4 pmd: Delete all old java source folders.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7491 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-26 09:25:46 +00:00
Romain Pelisse
1691962338 pmd: Drop deprecated renderer mode
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7490 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-24 09:00:15 +00:00
Brian Remedios
872bcd1baa Additional improvements to benchmark facility
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7489 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-23 16:25:49 +00:00
Brian Remedios
81f6a38641 Some overdue updates on benchmark facility:
* A separate package
* Modern enums for the various types
* Report interface for various output types (later)


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7488 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-23 11:21:57 +00:00
Brian Remedios
a873345452 Updated changelog with recent updates
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7487 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-23 10:38:47 +00:00
Brian Remedios
b12ad20878 minor refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7486 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-23 09:22:22 +00:00
Brian Remedios
5ac8f6d85c import cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7485 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-23 09:14:06 +00:00
Brian Remedios
7c77b45453 cleanup warnings
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7484 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-23 08:15:18 +00:00
Brian Remedios
9e23e6fbbe cleanup warnings & formatting, pull out utility method
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7483 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-23 08:11:46 +00:00
Brian Remedios
d18f456864 bugfix, cleanup warnings
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7482 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-23 08:00:20 +00:00
Brian Remedios
5bd606b67f rm misplaced annotations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7481 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-23 06:43:54 +00:00
Romain Pelisse
3f23ecca4c pmd: Copy over the new portions of the v4.3 release changelog to this file to provide a complete history
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7480 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-23 00:38:51 +00:00
Romain Pelisse
ef40e38b5d pmd: rename 'doing_the_next_pmd_release.txt' to 'release_process.txt'
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7479 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 20:47:02 +00:00
Romain Pelisse
b1eb47ec21 pmd: Delete unused (anymore) readme.txt
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7478 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 20:46:38 +00:00
Romain Pelisse
739d8a3376 pmd: Move all scripts files from bin to src/main/scripts - adapt build script accordingly
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7477 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 20:46:18 +00:00
Romain Pelisse
75daf38ed3 pmd: Move all java sources to src/main/java, adapt pom.xml, test and other files accordingly
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7476 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 20:45:07 +00:00
Brian Remedios
821f452f69 Cleanup Javadoc warnings in the build
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7475 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 18:10:46 +00:00
Brian Remedios
8a6e5539d6 Cleanup Javadoc warnings in the build
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7474 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 17:26:59 +00:00
Brian Remedios
7860f88da5 Fix for failing tests, partial restore of original version
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7473 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 15:58:44 +00:00
Brian Remedios
a5add2c5d9 rm inadvertent commit of buggy refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7472 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 07:59:50 +00:00
Brian Remedios
d35613e465 git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7471 51baf565-9d33-0410-a72c-fc3788e3496d 2011-11-21 07:55:19 +00:00
Brian Remedios
b965f14ae6 minor sort optimization
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7470 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 07:20:07 +00:00
Brian Remedios
49d71819b8 refactoring monster method, no functional changes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7469 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 06:59:31 +00:00
Brian Remedios
192e1e56a0 Simplified descendent checks for multi-type cases,
Exposed failure modes for XPathRule and AssignmentInOperandRule

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7468 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 05:36:46 +00:00
Brian Remedios
89d143f63c Minor refactoring, rulesets are now filtered to remove dysfunctional rules before execution.
These are recorded in the report. (Need to adapt the various reports to show them)

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7467 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 04:37:31 +00:00
Brian Remedios
d2b5f25524 minor cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7466 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-21 04:23:49 +00:00
Romain Pelisse
7f113dfe7e pmd: refactor PMD main class (no functional change)
This refactor is focused on reducing the amount of responsibilities of the PMD
class. Therefore all thread manbo-jambo has been moved to separate subpackage,
and the algorithms associated to the mono threaded or multithreaded strategy
were also moved into two separate classes. As they share a common signature and
some code, an abstract class was also added.

A large amount of code were moved out of PMD class to a RulesetsFactory utility
class, here again to reduce coupling and scope of responsibility. At last, PMD
class now has two fields, the Configuration object, as before, and a new object
called SourceCodeProcessor, which is in charge of ... processing source code !

Anyway, those changes are pure inner refactoring and should be harmless to
project, such as PMDEclipse or the Maven plugin - however, as any good plan
tends to go "boum" the minute you state "I love when I a plan come together",
please let me know if you run into any issue with theses changes, I'll do my
best to support you...

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7465 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-17 21:08:06 +00:00
Romain Pelisse
8dc6107743 pmd: Adapt assembly to new lone shell script
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7464 51baf565-9d33-0410-a72c-fc3788e3496d
2011-11-17 15:20:25 +00:00