4289 Commits

Author SHA1 Message Date
Tom Copeland
7fd1531f86 Code cleanup; thanks to Brian Remedios!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4449 51baf565-9d33-0410-a72c-fc3788e3496d
2006-07-06 12:47:25 +00:00
Tom Copeland
8dd1122290 Using the JavaCC CACHE_TOKENS option to optimize the parser slightly. This option makes the parser slightly smaller (about 2KB) and very slightly faster
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4448 51baf565-9d33-0410-a72c-fc3788e3496d
2006-07-06 12:13:31 +00:00
Tom Copeland
e85ed94ce5 *** empty log message ***
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4447 51baf565-9d33-0410-a72c-fc3788e3496d
2006-07-04 12:00:45 +00:00
Tom Copeland
10669885ac Fixed bug 1516728 - UselessOverridingMethod no longer raises an NPE on methods that use generics.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4446 51baf565-9d33-0410-a72c-fc3788e3496d
2006-07-04 11:58:29 +00:00
Jiger Patel
441bcb635e Fixed Bug [1501422] PMD Plugin: example box is not updated when new items hover filed in jEdit Plugins Bug tracker. Also updated pmd.props to reflect new version
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4445 51baf565-9d33-0410-a72c-fc3788e3496d
2006-07-03 12:49:28 +00:00
Tom Copeland
cf54821f1d Consolidating token kind definitions that are common to IN_COMMENT and IN_PREPROCESSOR_OUTPUT_COMMENT
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4444 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-27 21:36:32 +00:00
Tom Copeland
9b13a0a8f6 Another C grammar fix dealing with formal comments inside macros; added a new lexical state to account for this
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4443 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-27 14:00:42 +00:00
Allan Caplan
ef619fcd7a Changes from Brian Remedios.
Refactored UseIndexOfChar to extract common functionality into AbstractPoorMethodCall.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4442 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-27 00:19:15 +00:00
Philippe Herlin
55b12fdba5 Fix IllegalArgumentException issue when checking projects where root folder is source folder.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4441 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-26 21:23:08 +00:00
Tom Copeland
2d4428aa51 More optimizations thx to Brian
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4440 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-23 14:29:22 +00:00
Tom Copeland
8839dd046a More Report code cleanups from Brian
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4439 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-23 14:26:09 +00:00
Tom Copeland
919d40afcb Cleaned up some code; thanks to Brian Remedios for the suggestions!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4438 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-23 14:22:25 +00:00
Tom Copeland
5cbb8a689a Fixed bug 1504842 - ExceptionSignatureDeclaration no longer flags methods starting with 'test'.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4437 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-23 13:54:47 +00:00
Tom Copeland
c65f2380c9 Fixed a bug in the C++ grammar - the tokenizer now properly recognizes macro definitions which are followed by a multiline comment.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4436 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-23 06:00:38 +00:00
Tom Copeland
f64d95ecce Oops, need to munge rulesets before generating rule index
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4435 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-22 16:45:06 +00:00
Tom Copeland
82a4f9848e *** empty log message ***
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4434 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-22 16:41:23 +00:00
Jiger Patel
de7f9c07c3 Updated to PMD 3.7
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4433 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-22 05:59:54 +00:00
Philippe Herlin
d312bc8a21 Move the new rule sets management to the core plugin instead of the runtime.
Continue the development.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4432 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-21 23:06:54 +00:00
Jiger Patel
73d638b45d Removed getNode usage
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4431 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-21 07:24:48 +00:00
Tom Copeland
4d3a041215 Fixed a bug in AvoidProtectedFieldInFinalClass - it no longer reports false positives for protected fields in inner classes.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4430 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-21 03:00:04 +00:00
Philippe Herlin
ea5028fd31 Implement the last object of the rulesets structure
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4429 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-20 22:04:18 +00:00
Philippe Herlin
db9a68d2c7 Fix/review PMD violations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4428 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-20 21:26:42 +00:00
Philippe Herlin
4c35e01c8a Change plugins version to prepare next release.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4427 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-20 21:07:04 +00:00
Philippe Herlin
0a67ad9beb Enable PMD and fix error level violations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4426 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-20 21:04:49 +00:00
Philippe Herlin
cb9f92efb8 Fix the issue where the whole project is processed instead of a single file.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4425 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-20 20:48:24 +00:00
Philippe Herlin
cf1607472f Change the feature version to prepare next release.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4424 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-18 22:35:15 +00:00
Philippe Herlin
8836536997 Change the plugin version to prepare next release.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4423 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-18 22:34:22 +00:00
Philippe Herlin
bd8a448836 Begin to implement a new model for the plugin to handle rules and rulesets.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4422 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-18 22:33:02 +00:00
Philippe Herlin
d3f923f863 Begin refactoring the unit tests for the plugin
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4421 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-18 22:30:33 +00:00
Tom Copeland
cc57b9d4c0 Fixed bug 1412529 - UncommentedEmptyConstructor no longer flags private constructors.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4420 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-16 01:42:09 +00:00
Tom Copeland
3e9008000e Fixed bug 1417106 - MissingBreakInSwitch no longer flags stmts where every case has either a return or a throw.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4419 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-12 12:22:28 +00:00
Tom Copeland
60f60f78df Attribution
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4418 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-11 00:19:43 +00:00
Tom Copeland
0fb4afdcb1 added jsp
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4417 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-09 21:14:34 +00:00
Tom Copeland
b2c0b97c8c Added JSP support to CPD; thanks to the folks at Plateau Systems for the suggestion!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4416 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-09 21:11:38 +00:00
Philippe Herlin
564aa647da Add comments about suggested updated procedure
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4415 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-08 22:35:23 +00:00
Philippe Herlin
6b21a74ece Preparing release v3.1.6
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4414 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-08 22:24:11 +00:00
Philippe Herlin
182f29450d Fix marker deletion issue following the architecture refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4413 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-08 22:01:30 +00:00
Philippe Herlin
e9b41166c4 Remove usage API unknown by RSA (no consequence as it was for logging only)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4412 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-08 21:46:58 +00:00
Philippe Herlin
0881c8a53c FiX NPE in that occurred in RSA
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4411 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-08 21:43:52 +00:00
Tom Copeland
cda61e052f Applied patch 1481024 - NOPMD messages can now be reported with a user specified msg, e.g., //NOPMD - this is expected
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4410 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-07 02:26:24 +00:00
Tom Copeland
ed25ec620c Added NOPMD user message to HTML report
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4409 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-07 01:37:05 +00:00
Tom Copeland
50a1a65177 Applied patch 1481024 - NOPMD messages can now be reported with a user specified msg, e.g., //NOPMD - this is expected
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4408 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-07 00:41:45 +00:00
Philippe Herlin
b33ee909aa Remove the src directory from the build
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4407 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-05 22:26:14 +00:00
Philippe Herlin
253de35ef8 Use the 3.0 SchedulingRule API to be compatible with Rational Products
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4406 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-05 22:25:21 +00:00
Philippe Herlin
823a235df8 Revert to old plug-in manifest version and to unpack plugins to stay compatible with Rational products
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4405 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-05 21:30:42 +00:00
Philippe Herlin
d810ba92ab Fix the switch perspective NPE
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4404 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-05 21:28:16 +00:00
Radim Kubacki
03104b38ec updating to pmd-3.7
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4402 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-03 15:00:52 +00:00
Tom Copeland
bef34e4f88 Fixed bug 1498960 - DontImportJavaLang no longer reports static imports of java.lang members.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4401 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-01 22:39:54 +00:00
Philippe Herlin
fe08efab59 Upgrade to PMD v1.7
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4400 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-01 22:17:34 +00:00
Tom Copeland
6f6843e880 Fixed bug 1498910 - AssignmentInOperand no longer has a typo in the message.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4399 51baf565-9d33-0410-a72c-fc3788e3496d
2006-06-01 21:50:39 +00:00