Philippe Herlin
cad7d128a0
Add the possibility to use the PMD violation review style
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4379 51baf565-9d33-0410-a72c-fc3788e3496d
2006-05-07 12:04:13 +00:00
Tom Copeland
4a3bb3e694
Was missing a priority, thanks Matthew!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4378 51baf565-9d33-0410-a72c-fc3788e3496d
2006-05-04 21:49:22 +00:00
Tom Copeland
f5704b66dc
Fixed a bug in CallSuperInConstructor; it now checks inner classes/enums more carefully.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4377 51baf565-9d33-0410-a72c-fc3788e3496d
2006-05-04 13:09:36 +00:00
Tom Copeland
b18e1291e1
Fixed bug 1474778 - UnnecessaryCaseChange no longer flags usages of toUpperCase(Locale).
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4376 51baf565-9d33-0410-a72c-fc3788e3496d
2006-05-02 20:35:13 +00:00
Philippe Herlin
abbb9d5de6
Limit the number of reported violations per file and per rule
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4375 51baf565-9d33-0410-a72c-fc3788e3496d
2006-05-02 20:11:49 +00:00
Tom Copeland
56206afacf
Fixed bug 1461442 - UseAssertSameInsteadOfAssertTrue now ignores comparisons to null; UseAssertNullInsteadOfAssertTrue will report those.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4374 51baf565-9d33-0410-a72c-fc3788e3496d
2006-05-02 20:06:27 +00:00
Philippe Herlin
8f622f7334
Remove dead code
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4373 51baf565-9d33-0410-a72c-fc3788e3496d
2006-05-02 18:49:51 +00:00
Philippe Herlin
931af6b057
Make CPD "working set aware"
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4372 51baf565-9d33-0410-a72c-fc3788e3496d
2006-05-02 18:34:23 +00:00
Tom Copeland
85127f6948
Tweaked msg; thx to Brian R. for the suggestion
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4371 51baf565-9d33-0410-a72c-fc3788e3496d
2006-05-02 14:05:20 +00:00
Tom Copeland
3f3524d5be
Tweaked message, thx to Brian R for the suggestion
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4370 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-29 19:57:49 +00:00
Philippe Herlin
08851beef7
On the legacy Violations View, add new sorting option on line numbers and add reverse sorting on all columns (contribution of Pablo Alba)
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4369 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-27 20:35:54 +00:00
Tom Copeland
395b43b6ef
Fixed alignment
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4368 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-27 20:27:15 +00:00
Philippe Herlin
a2d709b666
Fix the usage of PMD deprecated createRuleSet() method
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4367 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-27 20:06:32 +00:00
Tom Copeland
afeaad9748
XML schema fixes thanks to Jeff Jensen
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4366 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-27 14:43:45 +00:00
Tom Copeland
163519b250
Added new DevX article
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4365 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-27 01:19:39 +00:00
Philippe Herlin
44e930011d
Reset PMD log and default log to warning level
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4364 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-26 21:18:17 +00:00
Philippe Herlin
930dd48210
Add the include derived files option
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4363 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-26 21:17:19 +00:00
Tom Copeland
1fc76ffc10
*** empty log message ***
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4362 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-26 13:27:18 +00:00
Tom Copeland
b0035e2c5c
Fixed docs, thx to David Karr for the correction
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4361 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-25 02:35:33 +00:00
Philippe Herlin
82f8229a5a
Rulesets list are now managed in the core plugin
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4360 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-24 21:18:11 +00:00
Philippe Herlin
83585035ef
Batch markers update to try to gain performance
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4359 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-24 20:55:15 +00:00
Philippe Herlin
3520a962d5
Add performance mesures on commands and on pmd execution
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4358 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-24 19:35:01 +00:00
Tom Copeland
6ebc243f23
More book references, thanks to Allan for the info!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4357 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-24 16:17:08 +00:00
Tom Copeland
b24f0a9063
Added an optional 'showSuppressed' item to the Ant task; this is false by default and toggles whether or not suppressed items are shown in the report.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4356 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-21 15:47:59 +00:00
Tom Copeland
9c41fcda5f
New meaning
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4355 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-21 13:14:24 +00:00
Tom Copeland
7f27edc60b
Fixed bug 1472843 - UnusedPrivateMethod no longer reports false positives when a private method is only called from a method that contains a variable with the same name as that method.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4354 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-20 14:22:51 +00:00
Allan Caplan
9dda10d4b4
New JSP Rule: DuplicateJspImport
...
Checks for Duplicate imports in JSP's.
Found that, though CompilationUnit is inside the AST, it's not being visited, so created a short term hack to override a parent method so we know when the head of each file parse is - that way we can purge the list of imports.
Once CompilationUnits are visited properly I'll fix this
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4353 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-20 00:55:51 +00:00
Allan Caplan
52ba494695
RFE 1462019 - Add JSPs to Ant Task
...
Added to the allowable values for targetjdk - using value of jsp will scan JSP's.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4352 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-19 23:57:36 +00:00
Allan Caplan
b2f6017efa
RFE 1462020 - Add JSPs to Designer
...
Added a new JDK type "JSP" to the Designer. When selected, and JSP text is added to the code window, the propper AST structure is displayed. Does not load the DFA window.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4351 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-19 23:52:24 +00:00
Philippe Herlin
2c97c29521
Reconfigure the rebuild command to better handle huge project (when changing PMD project properties, run the rebuild in background)
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4349 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-19 22:40:50 +00:00
Tom Copeland
fe66d2fc61
Nicer version cpd.sh from Jarkko
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4345 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-17 21:28:11 +00:00
Tom Copeland
6126b7ecba
More C++ lexer refinement; thanks to Jarkko Hietaniemi for finding these
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4344 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-17 21:23:04 +00:00
Tom Copeland
da32c85998
Fixed a symbol table bug; PMD no longer crashes on enumeration declarations in the same scope containing the same field name
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4343 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-17 21:09:48 +00:00
Radim Kubacki
c502aab3bb
http://www.netbeans.org/issues/show_bug.cgi?id=72197 - ignore R/O files in periodic scan
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4342 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-14 15:25:41 +00:00
Tom Copeland
2773f03749
Not using this enumLookahead semantic lookahead function... so removing it. We can always dig it back up out of CVS if we need it later...
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4341 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-14 04:05:00 +00:00
Tom Copeland
bee4216733
Fixed bug 1114003 - UnusedPrivateMethod no longer reports false positives when two methods have the same name and number of arguments but different types. The fix causes PMD to miss a few valid cases, but, c'est la vie.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4340 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-14 03:34:18 +00:00
Philippe Herlin
be2ac45cd8
Preparing 3.1.5 release (finalize)
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4337 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-12 20:37:42 +00:00
Philippe Herlin
5236f3ac1a
Change the label of the rebuild_project question message
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4336 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-12 20:31:18 +00:00
Tom Copeland
71d30900b8
Added flags to get this script working
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4335 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-12 14:06:36 +00:00
Philippe Herlin
72c6248d9b
Use the new IRuleViolation interface to generate reports
...
Fix default package issue
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4334 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-11 21:02:16 +00:00
Philippe Herlin
89e3180a88
Add new VBHTML report
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4333 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-11 21:01:17 +00:00
Tom Copeland
b3042d3f0b
Fixed bug in C/C++ parser; a '$' is now allowed in an identifier. This is useful in VMS.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4332 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-11 13:27:22 +00:00
Philippe Herlin
ee9b53e02c
Preparing 3.1.5 release
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4331 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-10 21:00:42 +00:00
Philippe Herlin
ce0f40de4a
Update to PMD 3.6
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4330 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-10 20:59:54 +00:00
Allan Caplan
d76a0455b9
Bug 1461426 InsufficientStringBufferDeclaration does not consider paths
...
Had only tested 1 single if else statement - compound if else statements behaved differently.
1462184 False +: InsufficientStringBufferDeclaration - wrong size
Code was testing for additive arithmetic, need to take into account multiply and divide as well.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4329 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-10 00:40:42 +00:00
Tom Copeland
d213cd10cb
Modified C/CPP grammar to only build the lexical analyzer; we're not using the parser for CPD, just the token manager. As a bonus, this reduces the PMD jar file size by about 50KB.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4328 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-08 17:26:56 +00:00
Tom Copeland
1fe24ef22c
Modified JJTree grammar to use node suppression for ASTModifier nodes; this replaces a bunch of DiscardableNodeCleaner hackery.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4327 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-08 00:57:41 +00:00
Tom Copeland
14f22ca0de
Fixed bug 1465574 - UnusedPrivateMethod no longer reports false positives when a private method is called from a method with a parameter of the same name.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4326 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-07 01:01:16 +00:00
Tom Copeland
af005b308e
Fixed major bug in CPD; it was not picking up files other than .java or .jsp. It's not quite set up for SourceFileSelector just yet.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4325 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-06 04:45:11 +00:00
Radim Kubacki
33e609e8ef
recent change
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4323 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-05 17:32:35 +00:00