4057 Commits

Author SHA1 Message Date
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
Tom Copeland
f913b02d1d Added IRuleViolation
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4322 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-05 14:04:42 +00:00
Tom Copeland
ea785d2601 Added an IRuleViolation interface and modified various code classes (include Renderer implementations and Report) to use it.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4321 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-05 14:02:19 +00:00
Radim Kubacki
a486a00be5 updated to PMD3.6, fixed some deprecations, ready to build new release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4320 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-05 13:49:44 +00:00
Tom Copeland
9d28ec81f9 Added RuleViolation.getBeginColumn()/getEndColumn()
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4319 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-05 13:25:57 +00:00
Tom Copeland
d36b8893c7 Replaced some DiscardableNodeCleaner usages with conditional node descriptors
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4318 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-05 13:23:21 +00:00
Tom Copeland
df07db983a Added note about Maven 2
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4317 51baf565-9d33-0410-a72c-fc3788e3496d
2006-04-05 13:21:47 +00:00
Tom Copeland
7a983f2e51 Tweaked JSP/JSF rule docs
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4316 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-29 15:24:34 +00:00
Tom Copeland
3f47af4d21 more short names
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4314 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-29 14:04:42 +00:00
Tom Copeland
122a0f8a3e rls preps
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4313 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-29 13:58:51 +00:00
Tom Copeland
44e41a867c Removed some ill-advised casts from the grammars.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4312 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-28 14:51:33 +00:00
Tom Copeland
6f3401322e The CPD Ant task now supports an optional language attribute.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4311 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-28 14:10:27 +00:00
Tom Copeland
928a2bbad2 Wouter Zelle fixed a false positive in InefficientStringBuffering.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4310 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-24 23:18:36 +00:00
Tom Copeland
b0f78f10a1 Wouter Zelle fixed a false positive in InefficientStringBuffering.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4309 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-24 23:15:52 +00:00
Tom Copeland
07e298a3e5 Fixed bug 1455965 - MethodReturnsInternalArray no longer flags variations on 'return new Object[] {}'.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4308 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-23 14:28:03 +00:00