77 Commits

Author SHA1 Message Date
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
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
Gunnlaugur Thor Briem
48687d7a1f Add synchronization to avoid concurrent-modification exceptions.
Still need to rethink that use of a static field. Seems suspect.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2646 51baf565-9d33-0410-a72c-fc3788e3496d
2004-04-21 02:33:04 +00:00
Gunnlaugur Thor Briem
3e009f0d0a Fetch the main window (to be parent of ProgressDialog) with proper
synchronization (i.e. in AWT event thread), fixing bug 787144.
Clean up imports and get rid of multiple fetches of the resource
bundle (flagged by a PMD rule violation for duplicate strings :).


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2645 51baf565-9d33-0410-a72c-fc3788e3496d
2004-04-21 01:33:08 +00:00
Gunnlaugur Thor Briem
4969dcfb1b - upgrade to PMD 1.3 (required code update because of tiny PMD API change)
- bump module version to 0.91


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2445 51baf565-9d33-0410-a72c-fc3788e3496d
2003-12-02 17:09:43 +00:00
Gunnlaugur Thor Briem
3fba5448d8 added cvsignore file as suggested by Jesse Glick (along with patch 797000)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2226 51baf565-9d33-0410-a72c-fc3788e3496d
2003-08-29 02:51:35 +00:00
Gunnlaugur Thor Briem
20ef9284a8 Applying the neatly-numbered patch 797000 from Jesse Glick (thanks!)
- UI improvements in the rules customizer


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2224 51baf565-9d33-0410-a72c-fc3788e3496d
2003-08-29 02:37:53 +00:00
Gunnlaugur Thor Briem
1ca5a294bb Applying the neatly-numbered patch 797000 from Jesse Glick (thanks!)
- fix capitalization and spurious whitespace


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2223 51baf565-9d33-0410-a72c-fc3788e3496d
2003-08-29 02:17:35 +00:00
Gunnlaugur Thor Briem
6179e35d29 Adding version separator and PMD update line, for consistency
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2182 51baf565-9d33-0410-a72c-fc3788e3496d
2003-08-13 05:17:25 +00:00
Gunnlaugur Thor Briem
06fcff5af8 Updated version info, and gave myself some credit :-p
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2176 51baf565-9d33-0410-a72c-fc3788e3496d
2003-08-12 23:24:35 +00:00
Gunnlaugur Thor Briem
7ae876cc5a Bumped PMD version
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2175 51baf565-9d33-0410-a72c-fc3788e3496d
2003-08-12 23:24:06 +00:00
Gunnlaugur Thor Briem
5a6e01a3c6 Updated PMD version, and changed default keystore
(makenbm assumes that keystore password is enough,
i.e. that the key itself does not have a separate
password, and this means people will typically not
want to store the pmdkey in their own keystore,
since the password is shared).


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2174 51baf565-9d33-0410-a72c-fc3788e3496d
2003-08-12 23:23:42 +00:00
Gunnlaugur Thor Briem
fb840ce7c7 Updating PMD lib to today's release, version 1.1
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2004 51baf565-9d33-0410-a72c-fc3788e3496d
2003-06-19 21:52:37 +00:00
Gunnlaugur Thor Briem
0979dafd8b Updating to the version from NB 3.5,
for correct support of NBM signing.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2003 51baf565-9d33-0410-a72c-fc3788e3496d
2003-06-19 21:47:25 +00:00
Gunnlaugur Thor Briem
a79ad02a44 Updating copyright statements, as
agreed in email with Ole-Martin.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1971 51baf565-9d33-0410-a72c-fc3788e3496d
2003-06-15 13:37:40 +00:00
Gunnlaugur Thor Briem
8870b42046 Make NBM signable (task 76460).
Sign it by creating your own key in the default keystore location
with Java's keytool, and then passing -Dstorepass=whatever to ant.
Then publish your certificate signature on the website -- or, even
better, sign your certificate with a chain of trust ending in an
official CA, so that people won't have to furrow their eyebrows
about anything ... but then, that costs money :). Ideally we should
have a CA-signed certificate for PMD with which we would sign the
personal key of whoever makes the build -- but of course the key
of that certificate would have to be "closed-source" :)


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1969 51baf565-9d33-0410-a72c-fc3788e3496d
2003-06-15 11:39:36 +00:00
Gunnlaugur Thor Briem
16e8d7bb17 Fixed bug [ 751932 ] Poor behavior with VCS-removed files:
(1) more graceful handling of IOException if it occurs in execution
    (spoils only scanning of that file, not the whole run)

(2) close progress dialog even if execution terminates with IOException

Other (unchecked) exceptions might still bork it though.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1965 51baf565-9d33-0410-a72c-fc3788e3496d
2003-06-11 01:14:04 +00:00
Gunnlaugur Thor Briem
bdbbfbf883 Added last committed changes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1956 51baf565-9d33-0410-a72c-fc3788e3496d
2003-06-07 22:22:00 +00:00
Gunnlaugur Thor Briem
1c6d4455d4 Progress of each PMD action execution now displays in its own dialog box,
with a Cancel button that will stop it. Resolves Feature Request 687119.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1955 51baf565-9d33-0410-a72c-fc3788e3496d
2003-06-07 22:20:33 +00:00
Gunnlaugur Thor Briem
5cdc71318a Applied Radim Kubacki's patch to allow other modules to register extra
ruleset factories.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1953 51baf565-9d33-0410-a72c-fc3788e3496d
2003-06-07 16:56:53 +00:00
Gunnlaugur Thor Briem
ac3986bc46 Made rule properties editable in the rule enabler dialog.
This is done as an "override" on top of the rule properties
configured for each rule in the ruleset XML files. Only
existing properties can be edited; new ones can't be added,
and existing ones can't be removed.

Implementation is slightly quick-n-dirty; I would prefer to
refactor PMD configuration to store rulesets defined in XML
files in the system filesystem, and allow import into that
set of rulesets from external files or the rulesets/* stuff
in the classpath. That would require a bit more surgery :)
and also some discussion to make sure my idea is not
significantly brain-damaged. So this will do for now.

Completes task 75427.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1951 51baf565-9d33-0410-a72c-fc3788e3496d
2003-06-03 03:10:02 +00:00
Gunnlaugur Thor Briem
e801e6e9cc Nothing terribly important:
- javadoc fixes
- made ConfigUtils abstract (provides only static methods)
- use ErrorManager instead of Throwable.printStackTrace and System.out.println
- avoid calling overrideable methods from CustomRuleSetSettings constructor


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1949 51baf565-9d33-0410-a72c-fc3788e3496d
2003-06-02 18:52:35 +00:00
Gunnlaugur Thor Briem
8331e25dea Improved PMD execution error reporting
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1912 51baf565-9d33-0410-a72c-fc3788e3496d
2003-05-10 12:08:38 +00:00
Gunnlaugur Thor Briem
ca872ed4c7 Added convenience constructor to Fault, which forms the fault message
from a PMDException.

Improved handling of PMD errors: when failing with a PMDException, the
Fault now specifies the PMDException's reason.

Also pops up a dialog with the exception details and logs it to ide.log
(encourages people to submit bugs to us, and I doubt that they mind too
much ... at least when this module is in a 0.x version :)


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1911 51baf565-9d33-0410-a72c-fc3788e3496d
2003-05-10 12:05:52 +00:00
Gunnlaugur Thor Briem
728fb01f8a Changed distribution filenames to pmd-netbeans35-*, to
differentiate from the 3.4.1-compatible distribution.
(clearly this commit should not be merged to the branch :)


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1859 51baf565-9d33-0410-a72c-fc3788e3496d
2003-04-24 11:05:56 +00:00
Ole-Martin Mork
9fd8273e59 merged from NB_3_4_COMPATIBLE branch
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1857 51baf565-9d33-0410-a72c-fc3788e3496d
2003-04-23 20:09:12 +00:00
Gunnlaugur Thor Briem
ac77ca42f1 Upgrade to version 1.05 of PMD (this is the jar from the released PMD 1.05).
Refactored build a little so that PMD version is specified in only one place.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1824 51baf565-9d33-0410-a72c-fc3788e3496d
2003-04-18 01:16:05 +00:00
Gunnlaugur Thor Briem
99b73ace16 Corrected manifest dependency specs according to what ModuleAutoDeps dictates
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1823 51baf565-9d33-0410-a72c-fc3788e3496d
2003-04-18 01:13:46 +00:00
Gunnlaugur Thor Briem
02f844f6d9 (trivial) relegated a log message to INFORMATIONAL and made clearer
(was probably being used for debugging by Ole-Martin)


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1822 51baf565-9d33-0410-a72c-fc3788e3496d
2003-04-18 01:10:45 +00:00
Gunnlaugur Thor Briem
8acbeb28e6 Applied patch 716247 (adapt to 3.5 API changes).
This makes the code on trunk incompatible with the latest stable version
of Netbeans (3.4.1). Compatibility with that version is maintained on
branch NB_3_5_COMPATIBLE (which in turn is not compatible with NB 3.5)


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1734 51baf565-9d33-0410-a72c-fc3788e3496d
2003-04-11 01:16:12 +00:00
Ole-Martin Mork
e7154d43b7 More work on the scanner
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1728 51baf565-9d33-0410-a72c-fc3788e3496d
2003-04-10 19:48:06 +00:00
Gunnlaugur Thor Briem
13c8e43fd4 Applied patch 46921 for tracker item 716243
(fix NPE in pmd-netbeans) by initializing all
options with (seemingly sensible) defaults.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1712 51baf565-9d33-0410-a72c-fc3788e3496d
2003-04-08 19:00:13 +00:00
Ole-Martin Mork
58c0cdb7a4 done some work on realtime scanning. added some properties and stuff.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1664 51baf565-9d33-0410-a72c-fc3788e3496d
2003-03-31 21:57:17 +00:00
Ole-Martin Mork
f9a65779fc Tried to get background scanning to work. Looking nice :-)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1613 51baf565-9d33-0410-a72c-fc3788e3496d
2003-03-26 23:34:42 +00:00
Ole-Martin Mork
8bcc4db536 Added files for pmd-1.04 and, updated with some changes from dnoyeb
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1607 51baf565-9d33-0410-a72c-fc3788e3496d
2003-03-24 22:28:38 +00:00
Ole-Martin Mork
d4f2c92c53 left out a few files
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1604 51baf565-9d33-0410-a72c-fc3788e3496d
2003-03-24 20:10:33 +00:00
Ole-Martin Mork
556314cd68 Trying to get custom rulesetloading to work. Getting close
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1575 51baf565-9d33-0410-a72c-fc3788e3496d
2003-03-21 17:33:11 +00:00
Ole-Martin Mork
d09bbf640c Preparing for custom rulesets
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1457 51baf565-9d33-0410-a72c-fc3788e3496d
2003-02-21 01:03:47 +00:00
Ole-Martin Mork
2545946bf9 Fixed some issues, added status message during checking, und so weiter
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1454 51baf565-9d33-0410-a72c-fc3788e3496d
2003-02-19 20:19:42 +00:00
Ole-Martin Mork
e4b128d6c9 Obeyed the shortmethodname rule.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1447 51baf565-9d33-0410-a72c-fc3788e3496d
2003-02-18 23:19:30 +00:00
Ole-Martin Mork
cc23426f51 Fixed bug 687515 and 688280
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1446 51baf565-9d33-0410-a72c-fc3788e3496d
2003-02-18 23:07:39 +00:00
Ole-Martin Mork
175e4a3ea7 Fixed bug 688365
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1445 51baf565-9d33-0410-a72c-fc3788e3496d
2003-02-18 22:23:30 +00:00
Ole-Martin Mork
d1039ac9a1 Released version 0.7
Updated copyright notice


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1441 51baf565-9d33-0410-a72c-fc3788e3496d
2003-02-15 19:06:50 +00:00
Ole-Martin Mork
aa42666f0e Applied the patch 685035
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1434 51baf565-9d33-0410-a72c-fc3788e3496d
2003-02-12 21:22:43 +00:00
Ole-Martin Mork
a9082591e1 Applied the patch(finally) And done some refactoring here and there.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1427 51baf565-9d33-0410-a72c-fc3788e3496d
2003-02-11 23:03:38 +00:00
Ole-Martin Mork
bd18eba34f Preparing for new release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1418 51baf565-9d33-0410-a72c-fc3788e3496d
2003-02-11 17:52:22 +00:00
Ole-Martin Mork
7ceecd5cb6 Updated the pmd version
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1417 51baf565-9d33-0410-a72c-fc3788e3496d
2003-02-11 17:31:38 +00:00