Adding new files for Maven 2 build:
* 'eclipse:clean' and 'eclipse:eclipse' works fine two.
* 'site' is correctly build but only the xdocs part, it still missing all the stuff that jelly did in maven 1.
* 'test' are failing, so are to disable to allow 'package' task to succeed.
* 'package' and 'install' works pretty fine too.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5494 51baf565-9d33-0410-a72c-fc3788e3496d
I removed a couple of System.out that i had forgotten about.
I also tried to integrate this new Render into the PMDAntTask.
AntTask will now recognize this formatter:
<formatter type="betterhtml" .../>
However, it failed very weirdly :
build.xml:81: Can't file XSLT sheet :etc/pmd-nicerhtml.xsl
Which is kind of weird as i use getClass().getResourceAsStream() to find the xsl, which is in the jar:
$ unzip -t pmd-4.0.jar | grep -e 'etc/pmd-n'
testing: etc/pmd-nicerhtml.xsl OK
I believe it is a classloarder problem, but i maybe wrong. I'll try to deceipher this later...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5493 51baf565-9d33-0410-a72c-fc3788e3496d
For example, this is possible:
$ java net.sourceforge.pmd.cpd.CPD --minimum-tokens 10 --files rep1 --files rep2 --language fortran
This is has been done to allow "scholar use" of PMD ( to check if one student's project in rep1 has
many common sources with an other student project in rep2).
Commit 2/2
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5492 51baf565-9d33-0410-a72c-fc3788e3496d
For example, this is possible:
$ java net.sourceforge.pmd.cpd.CPD --minimum-tokens 10 --files rep1 --files rep2 --language fortran
This is has been done to allow "scholar use" of PMD ( to check if one student's project in rep1 has
many common sources with an other student project in rep2).
Commit 1/2 ( waiting for xdocs and changelog update).
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5491 51baf565-9d33-0410-a72c-fc3788e3496d
Added an XSLTRenderer which inherits from XMLRenderer.
Once the XMLRenderer has done his job, the XML result will be transformed using the patch's XSTL.
It possible to use this renderer with other stylesheet, but not from the command line nor ant.
This new formatter does NOT override the old HTML renderer, to use this new one, we have to specify,
in command line, the "betterhtml" renderer:
To quicly test it on PMD itself:
$java net.sourceforge.pmd.PMD src betterhtml rulesets/unusedcode.xml
As i had to write a new renderer, i don't feel we should remove the old one for the moment.
(as always, i forgot the changelog)
Also, note that this note work with Ant, i'm working on it...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5490 51baf565-9d33-0410-a72c-fc3788e3496d
Added an XSLTRenderer which inherits from XMLRenderer.
Once the XMLRenderer has done his job, the XML result will be transformed using the patch's XSTL.
It possible to use this renderer with other stylesheet, but not from the command line nor ant.
This new formatter does NOT override the old HTML renderer, to use this new one, we have to specify,
in command line, the "betterhtml" renderer:
To quicly test it on PMD itself:
$java net.sourceforge.pmd.PMD src betterhtml rulesets/unusedcode.xml
As i had to write a new renderer, i don't feel we should remove the old one for the moment.
Commit 2/2
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5489 51baf565-9d33-0410-a72c-fc3788e3496d
Added an XSLTRenderer which inherits from XMLRenderer.
Once the XMLRenderer has done his job, the XML result will be transformed using the patch's XSTL.
It possible to use this renderer with other stylesheet, but not from the command line nor ant.
This new formatter does NOT override the old HTML renderer, to use this new one, we have to specify,
in command line, the "betterhtml" renderer:
To quicly test it on PMD itself:
$java net.sourceforge.pmd.PMD src betterhtml rulesets/unusedcode.xml
As i had to write a new renderer, i don't feel we should remove the old one for the moment.
Commit 1/2
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5488 51baf565-9d33-0410-a72c-fc3788e3496d
- Moved all JUnit tests to Type Resolution
- All JUnit java rules extend AbstractJUnitRule, which now has a common method to determine if this is really a test class or not. This will save needless processing, should reduce runtime as well (did not test runtime specifically)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5487 51baf565-9d33-0410-a72c-fc3788e3496d
- Moved all JUnit tests to Type Resolution
- All JUnit java rules extend AbstractJUnitRule, which now has a common method to determine if this is really a test class or not. This will save needless processing, should reduce runtime as well (did not test runtime specifically)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5486 51baf565-9d33-0410-a72c-fc3788e3496d
- Moved all JUnit tests to Type Resolution
- All JUnit java rules extend AbstractJUnitRule, which now has a common method to determine if this is really a test class or not. This will save needless processing, should reduce runtime as well (did not test runtime specifically)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5485 51baf565-9d33-0410-a72c-fc3788e3496d
- Moved all JUnit tests to Type Resolution
- All JUnit java rules extend AbstractJUnitRule, which now has a common method to determine if this is really a test class or not. This will save needless processing, should reduce runtime as well (did not test runtime specifically)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5484 51baf565-9d33-0410-a72c-fc3788e3496d
* Adding junit-4.1.jar to the lib/ directory
* Adding <inlcude name...> in the build.xml
$ ant -f bin/build.xml
... should now works fine for everybody !
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5483 51baf565-9d33-0410-a72c-fc3788e3496d
* Adding junit-4.1.jar to the lib/ directory
* Adding <inlcude name...> in the build.xml
$ ant -f bin/build.xml
... should now works fine for everybody !
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5482 51baf565-9d33-0410-a72c-fc3788e3496d
While doing so ... :
* Minors refactors.
* Adding two Unit Test for Ruby and Fortran tokenizer.
* Starting to doing some tuning on both tokenizer to ensure more relevant result.
I run the test without any NEW errors, but, please check if you can ;) !
(PS: forget to add this to changelog as it should, given the fact that it may change CPD's result on Ruby files).
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5481 51baf565-9d33-0410-a72c-fc3788e3496d
While doing so ... :
* Minors refactors.
* Adding two Unit Test for Ruby and Fortran tokenizer.
* Starting to doing some tuning on both tokenizer to ensure more relevant result.
I run the test without any NEW errors, but, please check if you can ;) !
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5476 51baf565-9d33-0410-a72c-fc3788e3496d
- All string checks for String / StringBuffer have been replaced with Type Resolution friendly checks
- New helper class to centralize this check
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5475 51baf565-9d33-0410-a72c-fc3788e3496d
- All string checks for String / StringBuffer have been replaced with Type Resolution friendly checks
- New helper class to centralize this check
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5471 51baf565-9d33-0410-a72c-fc3788e3496d
- All string checks for String / StringBuffer have been replaced with Type Resolution friendly checks
- New helper class to centralize this check
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5470 51baf565-9d33-0410-a72c-fc3788e3496d
- All string checks for String / StringBuffer have been replaced with Type Resolution friendly checks
- New helper class to centralize this check
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5469 51baf565-9d33-0410-a72c-fc3788e3496d
'AtLeastOneConstructor' rule will not be triggered anymore by static class (that should not have a constructor) or by utility classes ( class with only static methods )
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5467 51baf565-9d33-0410-a72c-fc3788e3496d