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
Tom Copeland
d1e09a33a4
tweak, thx Allan!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4307 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-21 13:45:46 +00:00
Radim Kubacki
472b9bca0b
recent changes mentioned
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4305 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-20 20:42:19 +00:00
Radim Kubacki
d46d3b2f07
few problems reported by Martin
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4304 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-20 20:37:35 +00:00
Tom Copeland
fd90c51c08
Wouter Zelle fixed a false positive in NonThreadSafeSingleton.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4303 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-20 14:28:52 +00:00
Radim Kubacki
46f5f0004f
use interface rather than impl class to avoid CCE
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4302 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-17 18:47:23 +00:00
Radim Kubacki
195704c33d
yet another round of scanning rewrite, dep on editor lib added
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4301 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-16 14:35:14 +00:00
Radim Kubacki
a7a9fc55c9
removing module install class and larger rewrite of automatic scanning (mostly to address http://www.netbeans.org/issues/show_bug.cgi?id=72766 )
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4300 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-16 09:13:28 +00:00
Radim Kubacki
2a3b617b1a
license header
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4299 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-16 08:45:16 +00:00
Tom Copeland
f0530c1b11
Fixed bug 1447295 - UseNotifyAllInsteadOfNotify no longer flags notify() methods that have a parameter.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4298 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-16 04:41:12 +00:00
Tom Copeland
20ad128ad5
Removed unused class; thx to Xavier Le Vourch for catching this
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4297 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-16 01:31:56 +00:00
Tom Copeland
b7ac7646a0
You can now access the name of a MemberValuePair node using getImage().
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4296 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-15 13:44:26 +00:00
Tom Copeland
47dcb33a11
Fixed bugs 1448123 and 1449175 - AvoidFieldNameMatchingTypeName, SingularField, TooManyFields, and AvoidFieldNameMatchingMethodName no longer error out on enumerations.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4295 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-14 14:28:36 +00:00
Tom Copeland
a582c07fdb
Fixed bug 1448123 - AvoidFieldNameMatchingMethodName no longer errors out on enumerations.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4294 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-13 21:46:28 +00:00
Tom Copeland
c6a1259a25
Fixed bug 1448123 - AvoidFieldNameMatchingTypeName no longer errors out on enumerations.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4293 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-13 21:42:50 +00:00
Tom Copeland
6156ba5de5
Applied a patch from Wouter Zelle to clean up the Ant Formatter class, fix a TextRenderer bug, and make toConsole cleaner.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4292 51baf565-9d33-0410-a72c-fc3788e3496d
2006-03-13 21:33:07 +00:00