Andreas Dangel
c91981ec65
pmd-eclipse - eclipse project configuration
2013-03-31 15:08:47 +02:00
Andreas Dangel
039d65fcc2
Merge branch 'master' of https://github.com/twh270/pmd
2013-03-31 14:24:58 +02:00
Andreas Dangel
2ab7b9e698
pmd-eclipse: update version numbers
2013-03-31 14:21:28 +02:00
Andreas Dangel
6fb192e584
Merge branch 'master' of https://github.com/hooperbloob/pmd into hooperbloob-master
2013-03-31 09:48:34 +02:00
Andreas Dangel
56339a6c58
Merge pull request #16 from acanda/ASTFormalParameterVariableName
2013-03-30 19:09:13 +01:00
Andreas Dangel
5f70b65afa
Merge pull request #17 from acanda/IterableReportTree
2013-03-30 18:46:18 +01:00
Andreas Dangel
e1c327d76f
pmd: fix version numbers for new logging rules.
2013-03-30 18:33:31 +01:00
Andreas Dangel
57e331f90e
pmd: add tests for CommentRequiredRule.
2013-03-30 18:33:12 +01:00
Andreas Dangel
29c178037a
Merge pull request #14 from snajberk/master
2013-03-30 17:16:10 +01:00
Andreas Dangel
1907c6d9e8
pmd: fix #1077 Missing JavaDocs for Xref-Test Files
2013-03-30 15:44:44 +01:00
Andreas Dangel
7c440fd42e
pmd: verify #937 OptimizableToArrayCall does not catch multilevel method chains
2013-03-30 15:25:03 +01:00
Andreas Dangel
f0d8759b79
pmd: fix #938 False positive on LooseCoupling for overriding methods
2013-03-30 15:04:47 +01:00
Andreas Dangel
5d1d82919c
pmd: verify #939 Jsp parser fails on $
2013-03-30 14:27:32 +01:00
Andreas Dangel
ca10969400
pmd: fix #940 False positive on UnsynchronizedStaticDateFormatter
2013-03-30 14:10:11 +01:00
Andreas Dangel
9b7562cd23
pmd: fix #942 CheckResultSet False Positive
...
* replacing the xpath rule with a java based rule implementation
2013-03-30 13:58:12 +01:00
Andreas Dangel
be4c1adce6
pmd: fix #943 PreserveStackTrace false positive if a StringBuffer exists
2013-03-30 11:50:57 +01:00
Andreas Dangel
89e005fe49
pmd: fix #945 PMD generates RuleSets it cannot read.
2013-03-30 11:50:45 +01:00
Andreas Dangel
b034dfb2d8
pmd: fix #958 Intermittent NullPointerException while loading XPath node attributes
...
* synchronizing the method cache
* adding additional null check
2013-03-30 09:25:04 +01:00
Andreas Dangel
0e44680981
formatting, white spaces
2013-03-30 09:06:18 +01:00
Andreas Dangel
c345f82968
pmd: verify #959 StringToString False Positive
2013-03-30 08:59:12 +01:00
Philip Graf
41705f17da
Make Report implement Iterable<RuleViolation>
...
With this change we can easily iterate over a Report using the
for-each loop of Java 5 instead of using Report.iterator().
Also the @Override annotation has been added to Report.iterator() and
ReportTree.iterator() as PMD switched to Java 6.
2013-03-30 01:28:31 +01:00
Andreas Dangel
90d901c4bf
pmd: verify #998 False positive ClassCastExceptionWithToArray with generics
2013-03-29 16:02:05 +01:00
Thomas Wheeler
61decdc6cb
Merge remote-tracking branch 'pmd-branch/master' into merge-pmd-branch
2013-03-27 10:11:58 -05:00
Andreas Dangel
abf8f3297b
pmd: update changelog, verify #1076
2013-03-24 20:33:54 +01:00
Andreas Dangel
470c6b9c38
Merge branch 'ViolationNodeEqualsNode' of https://github.com/acanda/pmd into acanda-ViolationNodeEqualsNode
2013-03-24 20:09:46 +01:00
Andreas Dangel
d9aefc7949
pmd: update changelog
2013-03-24 20:05:56 +01:00
Philip Graf
f5a5b6cd48
pmd: fix #1076 Report.treeIterator() does not return all violations
...
The cause of the bug was the implementation of
ViolationNode.equalsNode(otherNode) which returned true when two
different violations start on the same line.
Note: this change also adds a maven dependency on Mockito 1.9.5 (scope:
test). Mockito helps creating mock objects and makes the test more
readable.
2013-03-24 17:53:40 +01:00
Philip Graf
46a57aa3ab
Make ReportTree implement Iterable<RuleViolation>
...
With this change we can easily iterate over a ReportTree using the
for-each loop of Java 5 instead of using ReportTree.iterator().
2013-03-24 11:48:39 +01:00
Philip Graf
8dc8607102
Set variableName for a java violation with an ASTFormalParameter node
...
Extends JavaRuleViolation to also set the member "variableName" when the
provided node is of type ASTFormalParameter.
2013-03-24 11:48:27 +01:00
Pelisse Romain
36c8a31cd2
Merge pull request #14 from codecop/NPEx-JSP-Master
...
Nice catch ! Thanks for the fix !!!
2013-03-23 07:52:04 -07:00
Peter Kofler
59e7c2dd0c
fix Nullpointer Exception when using -l jsp
2013-03-23 15:42:02 +01:00
Andreas Dangel
d24a2651cb
pmd: fix #1027 PMD Ant: java.lang.ClassCastException
2013-03-17 11:59:00 +01:00
Andreas Dangel
2f53a3e795
pmd: fix #999 Law of Demeter: False positives and negatives
2013-03-17 11:03:02 +01:00
Andreas Dangel
c8bf5d46a8
pmd: fix #975 false positive in ClassCastExceptionWithToArray
2013-03-17 10:11:02 +01:00
Andreas Dangel
d7bdb79cdd
pmd: fix #968 Issues with JUnit4 @Test annotation with expected exception
...
Thanks to Yiannis Paschalidis
2013-03-17 09:56:02 +01:00
Andreas Dangel
7947282704
pmd: verify #962 MethodReturnsInternalArray: False positive using a ternary operator
2013-03-16 22:09:36 +01:00
Andreas Dangel
4388806404
pmd: fix #976 UselessStringValueOf wrong when appending character arrays
2013-03-16 19:51:06 +01:00
Andreas Dangel
8ea9d29f31
pmd: fix #977 MisplacedNullCheck makes false positives
2013-03-16 19:17:48 +01:00
Andreas Dangel
72d07a8e7e
pmd: fix #985 Suppressed methods shouldn't affect avg CyclomaticComplexity
2013-03-16 18:09:25 +01:00
Andreas Dangel
c3e148174c
pmd: fix #984 Cyclomatic complexity should treat constructors like methods
2013-03-16 17:15:40 +01:00
Andreas Dangel
22a2db080f
pmd (site): add links to the rules from the rule index page
2013-03-16 15:22:31 +01:00
Andreas Dangel
0125e7a03b
pmd (site): add missing default values of properties for documentation
2013-03-16 13:58:32 +01:00
Andreas Dangel
370ed23e01
pmd: fix #991 AvoidSynchronizedAtMethodLevel for static methods
2013-03-16 12:22:10 +01:00
Andreas Dangel
dcaf06303c
pmd: fix #997 Rule NonThreadSafeSingleton gives analysis problem
2013-03-16 12:05:05 +01:00
Andreas Dangel
54cab5de42
pmd: fix #992 Class java.beans.Statement triggered in CloseResource rule
2013-03-16 11:40:15 +01:00
Andreas Dangel
bb083a7685
pmd: fix NPE in ConstructorCallsOverridableMethodRule
2013-03-15 21:54:02 +01:00
Andreas Dangel
ea06bd063f
pmd: switch to java 1.6
...
we already depend on it, e.g. jcommander requires a java 1.6 JRE
2013-03-15 21:49:28 +01:00
Andreas Dangel
7ae1e9c6dc
pmd: fix #1032 ImmutableField Rule: Private field in inner class gives false positive
...
Improved symbol table resolution to check inner classes, too.
2013-03-15 21:37:02 +01:00
Andreas Dangel
2c5b6e1fdb
pmd: verify #254 False+ : UnusedImport with Javadoc @link
2013-03-14 21:47:06 +01:00
Andreas Dangel
0739c2f601
pmd: fix #1005 False + for ConstructorCallsOverridableMethod - overloaded methods
...
It won't be perfect, but for constructor calls and method calls a
simple check of the argument types is done. Primitive types are
distinguished, reference types not.
In order to support all cases, full symbol resolution is needed.
2013-03-14 20:48:05 +01:00