Philippe Herlin
98da56f25a
Releasing v2.0.5
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2778 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-29 22:02:00 +00:00
Philippe Herlin
8e1bfa372f
Adapting the plugin to the new OSGi standards
...
Releasing v2.0.5
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2777 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-29 22:01:15 +00:00
Philippe Herlin
6e71511803
Adapting the plugin to the new OSGi standards
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2776 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-29 22:00:30 +00:00
Tom Copeland
77f38d3e3c
Todd ported ConfusingTernary to Java to catch more cases
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2775 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-29 13:54:49 +00:00
Tom Copeland
a54c021b97
Test gardening
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2774 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-28 19:27:18 +00:00
Tom Copeland
55cc1ed6d4
AtLeastOneConstructorRule is now an XPath rule; thx to Todd Wright for an initial cut
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2773 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-28 19:25:41 +00:00
Tom Copeland
338aae1c4a
Bigger window
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2772 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-28 15:45:37 +00:00
Tom Copeland
6d4efae2b7
Using BufferedInputStreams now
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2771 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-28 15:45:12 +00:00
Tom Copeland
dd29c1a574
Added Austin Moore's CodeGuide integration notes
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2770 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-24 18:47:22 +00:00
Tom Copeland
91cbcf544c
Fixed link
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2769 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-23 20:47:02 +00:00
Tom Copeland
a9978f1540
Added ConfusingTernaryExpression rule; thanks to Todd Wright
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2768 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-23 14:50:10 +00:00
Tom Copeland
bf7ab98083
New EqualsNull rule thanks to Noel Grandin
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2767 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-23 14:30:52 +00:00
Tom Copeland
57c3f23d53
Added some more explanatory notes to a rule
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2766 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-23 13:52:15 +00:00
Tom Copeland
93b6dccead
Removed old rules aggregation class
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2765 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-22 19:48:26 +00:00
Tom Copeland
d3b5683983
Oops, fixed package names. Minor gardening as well
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2764 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-22 18:18:24 +00:00
Tom Copeland
a784664f55
Moving braces rule tests into their own directory
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2763 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-22 17:47:40 +00:00
Tom Copeland
7deb480293
Fixed bug 976643 - IfElseStmtsMustUseBracesRule no longer reports false positives for certain if..else constructs.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2762 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-22 16:14:14 +00:00
Tom Copeland
d7d9f67059
Boiling down a test case
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2761 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-22 15:52:43 +00:00
Tom Copeland
30e4c93ee3
More tweaks for UnusedModifier; now it ignores fields in nested classes as well
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2760 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-22 15:49:56 +00:00
Tom Copeland
0b34c79e02
ASTUnaryExpressionNotPlusMinus expressions (like 'int x = !y;') now appear in the AST
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2759 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-22 15:28:49 +00:00
Tom Copeland
7023b7b755
UnusedModifier no longer reports false positives for modifiers of nested classes in interfaces
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2758 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-21 21:22:35 +00:00
Tom Copeland
c4d09ab9be
Fixed a bug; UnusedLocalVariable now counts an assignment to a local variable's member as a usage
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2757 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-21 20:42:49 +00:00
Tom Copeland
39aa949aed
Some missing parens...
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2756 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-21 19:33:32 +00:00
Tom Copeland
bea94d0425
Oops, old test pointer
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2755 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-18 21:43:41 +00:00
Tom Copeland
415dccf252
Compound assignments (i.e., x /= 2) were not being seen as a usage of a variable. Now they are.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2754 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-18 21:20:05 +00:00
Tom Copeland
648f87f362
A little Friday afternoon test gardening
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2753 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-18 20:23:16 +00:00
Tom Copeland
527d3eda15
Another article or two
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2752 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-18 20:22:09 +00:00
Tom Copeland
538c94e77f
A bit of work on the symbol table - class names are now recorded in the GlobalScope. Come to think of it, they should probably be recorded in SourceFileScope or some such interim layer instead to allow for private inner classes. At any rate, that's where they are for now. I also pushed some stuff down from AbstractScope into LocalScope where it seemed to fit better. Removed a useless unit test, added some good ones. Generally, making progress towards fixing the 'unused private field false positive when inner class private field is referenced from enclosing class'
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2751 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-17 21:17:31 +00:00
Tom Copeland
b5731b6858
Moving some complicated code out of Scope/VariableUsageFinderFunction and into client classes, where it's a bit clearer. All tests pass, still mulling this one over....
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2750 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-16 20:00:39 +00:00
Tom Copeland
bb2a2a9df7
Adding a new test that will take a lot of work to fix. Argh.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2749 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-16 18:32:38 +00:00
Tom Copeland
c77269cf10
Cleaned up a few items found by the new unused code rules... good stuff.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2748 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-16 18:31:56 +00:00
Jiger Patel
482045e2fb
Removed Recursive Directory options and integrated them into FileChooser itself.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2747 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-16 12:24:10 +00:00
Jiger Patel
b95ed9d304
Renamed confusing check current directory labels to check directory since that is what they essentially were doing. Now it gives default current directory as default value for convinience 2. Cleaned up imports
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2746 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-15 13:06:34 +00:00
Tom Copeland
8355454234
New clone rules from Matt Inger; new clone ruleset
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2745 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-14 15:19:58 +00:00
Tom Copeland
40d4c16e68
Putting together the new 'clone' ruleset
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2744 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-14 15:04:08 +00:00
Tom Copeland
8214e93c22
Putting together the new 'clone' ruleset
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2743 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-14 14:58:33 +00:00
Tom Copeland
a3422748dc
Implemented RFE 958714: Private field and local variables that are assigned but not used are now flagged as unused
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2742 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-08 18:59:47 +00:00
Tom Copeland
9698ed3873
A little test cleanup
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2741 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-08 14:16:31 +00:00
Tom Copeland
0c2fc3e27d
More credits, word
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2740 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-07 15:57:04 +00:00
Tom Copeland
d9a2906285
Added Morgan Schweer's clever Javascript highlighter
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2739 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-07 15:54:11 +00:00
Tom Copeland
3b191c2b90
Tightened up the conditions under which isFoo() is allowed
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2738 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-04 14:23:58 +00:00
Tom Copeland
cedaee6781
Fixed bug 962782 - BeanMembersShouldSerializeRule no longer reports set/is as being a violation.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2737 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-03 21:41:12 +00:00
Tom Copeland
36796de755
*** empty log message ***
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2728 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-02 20:55:20 +00:00
Jiger Patel
f2e364dfc8
Minor label additions.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2727 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-02 09:11:14 +00:00
Tom Copeland
055714a475
Added support for postfix expressions, albeit via the StatementExpression node.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2726 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-01 20:43:00 +00:00
Tom Copeland
e561dc6d83
Added support for postfix expressions, albeit via the StatementExpression node.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2725 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-01 20:28:00 +00:00
Tom Copeland
60ceeead96
New article
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2724 51baf565-9d33-0410-a72c-fc3788e3496d
2004-06-01 13:58:16 +00:00
Gunnlaugur Thor Briem
541802b466
Require restart, to work around the "Unrecognized settings" bug.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2722 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-28 09:13:23 +00:00
Gunnlaugur Thor Briem
0b5a2f8f3a
Miscellaneous snurfussing (cleanup) incl. imports and some minor removal
...
of extraneous whitespace (mostly wherever I was changing something anyway)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2721 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-28 02:06:26 +00:00
Gunnlaugur Thor Briem
9e9eaa9e3f
Tidier build configuration and support for deploying directly into a
...
NetBeans installation, a la Radim Kubacki's NB trunk build patch. This
simplifies the build-and-test cycle.
Haven't yet applied the full patch; I intend to branch apart NB 3.6 and
NB trunk, since changes in code will be necessary to support NB trunk.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2720 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-27 01:06:50 +00:00