4540 Commits

Author SHA1 Message Date
Sven Jacob
24d9380ea9 show dialog box after cpd finished without results
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4855 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-01 11:13:48 +00:00
Brian Remedios
71c8d956d1 minor scope optimization
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4854 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-01 07:12:13 +00:00
Brian Remedios
c2b88baac1 rm dead interface (renamed to LineGetter a while back)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4853 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-01 07:10:50 +00:00
Xavier Le Vourch
8b527ccfe4 bug fix: detection of extra parenthesis was not correct, selfassigned returned true for more than cases such as '(i)++'
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4852 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-01 07:10:26 +00:00
Wouter Zelle
21ef1a3012 Cleanup of test using reinitialization in XML test-data file
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4851 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 21:32:36 +00:00
Wouter Zelle
ab2f5a6a4f cleanup of test using reinitialization in XML test-data file
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4850 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 21:27:41 +00:00
Wouter Zelle
ea035b776c XML test-data format now support reinitialization of rules, so you no longer need seperate junit test-methods for rules that cache
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4849 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 21:26:39 +00:00
Wouter Zelle
c5bb8e569f Added a test for constructors
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4848 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 21:09:59 +00:00
Wouter Zelle
d423cce0f4 Added property that can be used to turn on the junit test XML formatter, so you can actually create junit test HTMLs with the results
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4847 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 21:05:40 +00:00
Wouter Zelle
130d959688 cleanup: reduced scope
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4846 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 20:59:35 +00:00
Xavier Le Vourch
adcc5741b3 Descriptor can be static
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4845 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 19:36:33 +00:00
Wouter Zelle
71b693ba2d more XML cleanups
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4844 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 19:26:36 +00:00
Xavier Le Vourch
7c2f7bf62c strict boolean property to check for 00 to 07, off by default
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4843 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 18:58:13 +00:00
Xavier Le Vourch
26907e0d0c False positives + bug fix
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4842 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 05:18:16 +00:00
Xavier Le Vourch
3998500fa8 BigIntegerInstantiation rules merged into one
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4841 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 04:50:13 +00:00
Xavier Le Vourch
80209cb241 BigIntegerInstantiation rules merged into one
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4840 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 04:44:20 +00:00
Xavier Le Vourch
6645954526 1.5 test case for Boolean.valueOf added
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4839 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 03:10:17 +00:00
Xavier Le Vourch
af4afaa78b LocalVariableCouldBeFinal and MethodArgumentCouldBeFinal use the same detection methods, refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4838 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 02:29:13 +00:00
Xavier Le Vourch
f10997e29f Fixed false positives in MethodArgumentCouldBeFinal.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4837 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-30 02:27:47 +00:00
Tom Copeland
6984c07d08 Fixed bug 1560944 - CPD now skips symlinks.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4836 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-28 14:04:12 +00:00
Tom Copeland
3c184e4eea *** empty log message ***
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4835 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-27 14:08:52 +00:00
Tom Copeland
ade6a4d26b bah
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4834 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-27 14:08:42 +00:00
Tom Copeland
051136af5f Fixed bug 1593292 - The CPD GUI now works with the 'by extension' option selected.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4833 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-27 14:05:44 +00:00
Tom Copeland
a042a3ca33 The CastLookahead production can be #void, too
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4832 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-27 04:21:37 +00:00
Tom Copeland
fba6f4c2eb ASTModifiers has been #void for a while, and ASTMethodDeclarationLookahead is a lookahead-only production so there's no need to generate an AST node for it
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4831 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-27 04:17:16 +00:00
Radim Kubacki
1c6df16211 last changes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4829 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-22 20:28:06 +00:00
Radim Kubacki
d4dda0500a todo item
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4828 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-22 20:26:59 +00:00
Radim Kubacki
1e819951c2 commited a patch provided by Andrei Badea <andrei.badea@movzx.net>:
1. Fixes the bug where if you slide the results window and invoke Run PMD the results window is docked in the output mode again.
2. Adds a Window - PMD Output action which opens the results window.
3. Allows jumping to a problem by pressing Enter in the results window.
4. Fixes the threading of OutputWindow.
5. Some minor cleanup in RunPMDAction.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4827 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-22 19:54:55 +00:00
Radim Kubacki
e492530a91 reworked impl of f12/Shift-f12 a bit
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4826 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-22 19:21:43 +00:00
Radim Kubacki
b6fc7a164b updated to more current state
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4825 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-22 19:17:20 +00:00
Sven Jacob
ab3ba505b1 using new PropertyDescriptor now
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4824 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-22 12:14:52 +00:00
Wouter Zelle
9b937f6191 Fixed bug testing regular parameters in the test code
Both possibilities are now tested (with test verification check)


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4823 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-21 17:51:41 +00:00
Xavier Le Vourch
222563dc32 bug fix: acceptType only works for fields and locals
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4822 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-21 04:18:14 +00:00
Xavier Le Vourch
d900e64abc bug fix: octal pattern can contain optional 'L' at the end
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4821 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-20 22:28:33 +00:00
Sven Jacob
816e04b905 fix to minor refresh problems
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4820 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-20 14:55:31 +00:00
Sven Jacob
5f3ad79238 Fix: When Packages are in a src folder and not in the root of the project, they are not shown in the violation overview.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4819 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-20 14:53:27 +00:00
Sven Jacob
eb5c35a929 fixed some lockups and added label-statements
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4818 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-20 11:32:15 +00:00
Xavier Le Vourch
e7ddff7d7b DaaRule was accidentaly commented out
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4817 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-19 02:10:16 +00:00
Xavier Le Vourch
477410f3eb Performance Refactoring, XPath rules re-written as Java: DontImportJavaLang, DontImportSun
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4816 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-19 02:07:58 +00:00
Xavier Le Vourch
b5aa7f3422 bug fix from previous commit
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4815 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-19 02:01:35 +00:00
Xavier Le Vourch
4bc641bf51 Renderers use less memory when generating reports.
The previous implementation built the entire report as a single String. Testing
all rules on the JDK generates a report larger than 100M and that created a
spike in memory usage at the very end.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4814 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-19 01:54:09 +00:00
Sven Jacob
22bca13115 some little improvements for cpd view
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4813 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-18 14:48:52 +00:00
Sven Jacob
4a8f953fe3 added tooltip for anomaly type
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4812 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-18 14:48:26 +00:00
Sven Jacob
342a67915d some more info output
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4811 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-18 14:45:11 +00:00
Sven Jacob
69754d98ec Fixed 1597987: ArrayIndexOutOfBounds in new DaaRule
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4810 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-18 10:35:55 +00:00
Sven Jacob
ea55ca45cd Fixed 1597987: NPE in new DaaRule
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4809 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-17 09:08:51 +00:00
Sven Jacob
7dafa8dba3 PackageSwitchAction not needed anymore. Delete?
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4808 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-17 09:08:32 +00:00
Xavier Le Vourch
7f9aa0807f Literal image can be null
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4807 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-17 02:04:46 +00:00
Xavier Le Vourch
35a1eeccf2 AvoidUsingOctalValues: too many false + for non octal values -> rewritten in Java with an exact regexp
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4806 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-17 01:46:21 +00:00
Sven Jacob
110797a22e Fixed 1597987: NPE in new DaaRule
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4805 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-16 22:27:25 +00:00