Xavier Le Vourch
2462c9637b
false + for double literals in AvoidUsingOctalValues
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4804 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-16 19:35:19 +00:00
Wouter Zelle
49c1d3aff0
definition of the test-data XMLs for tests
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4803 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-16 19:05:38 +00:00
Wouter Zelle
4b7321810c
XML files with the code for tests
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4802 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-16 19:03:15 +00:00
Wouter Zelle
b2ef53f5d8
removed, since this is a dupe of NoScriptletsTest
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4801 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-16 19:00:05 +00:00
Sven Jacob
70a48fbda7
Some major changes:
...
- new CPD View
- changed and refactored ViolationOverview
- some minor changes to dataflowview to work with PMD
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4800 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-16 17:14:34 +00:00
Sven Jacob
44f58d493f
- changed command for the new cpd view
...
- possibility to set the number of maxviolations per file over the rule-properties
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4799 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-16 16:54:41 +00:00
Sven Jacob
679ec558e0
division by zero fix
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4798 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-16 16:47:42 +00:00
Sven Jacob
bfca01c305
- fixed dfa lockup
...
- fixed variable access for definitions
- added DaaRule for controversial ruleset (DataflowAnomalyAnalysis)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4797 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-16 16:38:53 +00:00
Tom Copeland
e62434479b
Added Wouter and Sven; welcome, guys!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4796 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-16 14:05:02 +00:00
Tom Copeland
6b14992df7
Added isVarargs() to ASTFormalParameter
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4795 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-15 16:12:09 +00:00
Tom Copeland
1a599ac62c
Oops, forgot to add the xml files
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4794 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-15 02:55:24 +00:00
Tom Copeland
4e45de9075
A tremendous patch from Wouter to move lots of things over to the new rule XML test format
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4793 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-15 02:14:31 +00:00
Tom Copeland
de74cfa270
Modifiers is #void now, so no need to define an adaptor stub
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4792 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-14 03:44:28 +00:00
Xavier Le Vourch
17043cf32f
Fixed false positives in LocalVariableCouldBeFinal.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4791 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-14 02:22:40 +00:00
Tom Copeland
2c4bdd28aa
Checked in Piar's implementation of AvoidUsingOctalValues
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4790 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-14 00:50:40 +00:00
Tomasz Slota
79c7222547
actions for jumping to next/previous problem found
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4789 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-13 15:18:48 +00:00
Tom Copeland
cf59280967
Added piair's new StringBufferInstantiationWithChar rule, thanks piair!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4788 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-13 02:19:51 +00:00
Tomasz Slota
5b1b058a60
bugfix: if PMD scan finds no problems the old scan results are not cleared
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4787 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-10 09:12:14 +00:00
Radim Kubacki
1e59f922e8
NB deps
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4786 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-10 08:07:37 +00:00
Radim Kubacki
6521da180e
working on interim release targeting NB5.5+trunk
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4785 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-10 07:10:47 +00:00
Radim Kubacki
07ce4de6be
regenerated
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4784 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-10 06:56:39 +00:00
Tom Copeland
dc65c71a8f
Fixed bug 1592710 - VariableNamingConventions no longers reports false positives on certain enum declarations. This was actually a bug in ASTFieldDeclaration.isInterfaceMember()
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4783 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-10 04:36:44 +00:00
Tom Copeland
e37bafed58
Fixed bug 1592710 - VariableNamingConventions no longers reports false positives on certain enum declarations. This was actually a bug in ASTFieldDeclaration.isInterfaceMember()
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4782 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-10 04:15:34 +00:00
Xavier Le Vourch
52e458e3c1
call to deprecated show() replaced by setVisible(true)
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4781 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-10 03:15:28 +00:00
Tom Copeland
25afca7390
tweak
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4780 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-08 13:35:37 +00:00
Allan Caplan
b1460476ed
Clearing up deprecations
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4779 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-06 01:41:06 +00:00
Allan Caplan
8580efe567
Moving test cases from xml deffinition into JUnit test
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4778 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-06 00:55:16 +00:00
Tom Copeland
71334e29c3
*** empty log message ***
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4777 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-03 04:03:14 +00:00
Tom Copeland
f7dc5ebd7b
Removed Xalan jars. Since we're using JDK 1.4 we can just use javax.xml.blah. Note the Designer FIXME; still need to take care of that. But this trims things down quite nicely; yay JDK 1.4!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4776 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-03 03:52:41 +00:00
Jiger Patel
49d5dccc4d
Fixed changes in JEditPMDRule as per new methods in Rule interface
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4775 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-02 07:11:26 +00:00
Xavier Le Vourch
c36123e401
asm updated to official 3.0 release
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4774 51baf565-9d33-0410-a72c-fc3788e3496d
2006-11-01 22:35:57 +00:00
Xavier Le Vourch
dcf23bb385
regression bug fix: pattern.matches threw NPE on null string. A pattern is overkill to test first char only
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4773 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-31 19:41:27 +00:00
Radim Kubacki
7544ffe9a5
mentioning JDk1.5 dep
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4772 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-31 08:41:40 +00:00
Radim Kubacki
4af0abfd2c
fixing test deps
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4771 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-31 08:40:52 +00:00
Tom Copeland
26e199f98f
Fixed spelling
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4770 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-31 07:11:53 +00:00
Tom Copeland
17d8d3c2bb
Tightening up a bit on JDK 1.5 usage
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4769 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-31 07:04:25 +00:00
Radim Kubacki
be5faa39b6
generics
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4768 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-31 06:56:35 +00:00
Radim Kubacki
0bd8ce3bc2
need to cast with NB5.5
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4767 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-31 06:55:49 +00:00
Tom Copeland
5314563be6
Replaced Jakarta ORO with built-in java.util.regex. I think all these changes are correct - at least, all the tests pass - but if anyone notices anything awry, please let me know... thanks!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4766 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-31 06:38:09 +00:00
Tom Copeland
e912255b43
One more tweak
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4765 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-31 02:33:54 +00:00
Tom Copeland
f42be14252
That's more like it
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4764 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-31 01:38:04 +00:00
Allan Caplan
a6b80bb594
Removing patch
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4763 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-31 01:20:59 +00:00
Radim Kubacki
607ad3080d
Switching source level to 1.5
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4762 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-30 21:44:57 +00:00
Radim Kubacki
76d6c7a1ac
builds against trunk (no org.openide.src)
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4761 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-30 19:42:27 +00:00
Tom Copeland
91b574d971
Er, that's not right... reverting my last checkin
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4760 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-29 20:09:35 +00:00
Tom Copeland
e1f2b92783
We can just call iterater(); no need to call isEmpty() first
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4759 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-29 20:05:06 +00:00
Tom Copeland
15d1c24887
findChildrenOfType never returns null; it just returns an empty List if there aren't any found
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4758 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-29 20:04:12 +00:00
Allan Caplan
da00dd2a2b
Applied patch 1583167 - Better test code management from Wouter
...
Made one small change - initial patch had resources in the same directory. Changed to look in current directory + xml. So, core rules are test.net.sf.pmd.rules.xml
If anyone disagrees with this I'm not 100% set on this decision - it made it cleaner to me
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4757 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-27 02:01:25 +00:00
Allan Caplan
523da8ab31
Removed unused and duplicate test.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4756 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-27 01:03:49 +00:00
Allan Caplan
a5a1a02cd6
ReportTest had a bunch of tests that weren't working commented out. Fixed 'em up, all green.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4755 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-27 01:02:19 +00:00