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
Philippe Herlin
5ede79461b
Upgrading to PMD 1.8: adding finalizers ruleset to the default rulesets list
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2719 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-26 15:55:23 +00:00
Gunnlaugur Thor Briem
4179a4b874
Forgot to add this one for previous commit; extracted common base class
...
for AvailableListModel and SelectedListModel (just a cleanliness thing)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2718 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-26 10:12:42 +00:00
Gunnlaugur Thor Briem
d5a3127e58
Hefty commit, see CHANGES.txt; should have split into smaller commits
...
but won't go to that effort now (sorry!)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2717 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-26 10:04:37 +00:00
Tom Copeland
e12e9df7bc
post rls
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2716 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-25 18:52:18 +00:00
Tom Copeland
d001d17e59
rls preps
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2714 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-25 18:40:07 +00:00
Tom Copeland
72ea2c9f08
rls preps
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2712 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-25 18:36:54 +00:00
Tom Copeland
a7e0bc028c
Cleaned up MockRule - removed a lot of unneeded methods and fields. Made AbstractRule fields protected vs private so that MockRule could use them.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2711 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-25 15:15:36 +00:00
Tom Copeland
bbef427372
Implemented RFE 743460: The XML report now contains the ruleset name
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2710 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-25 14:06:56 +00:00
Andrey Lumyanski
729106bf9d
no message
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2708 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-24 19:52:52 +00:00
Tom Copeland
b4371bf620
Added a page on future directions
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2707 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-24 18:20:35 +00:00
Tom Copeland
8b611726f8
2 more projects
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2706 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-24 15:48:04 +00:00
Tom Copeland
0d43016047
Added Andrei to various pages
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2705 51baf565-9d33-0410-a72c-fc3788e3496d
2004-05-24 14:42:37 +00:00