Philip Graf
4569842965
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 20:40:20 +01:00
Andreas Dangel
fddccb5030
pmd: update changelog
2013-03-24 20:40:01 +01:00
Peter Kofler
00e27b4a37
fix Nullpointer Exception when using -l jsp
2013-03-24 20:39:52 +01:00
Andreas Dangel
b6c6899741
pmd: fix #1027 PMD Ant: java.lang.ClassCastException
2013-03-17 12:47:45 +01:00
Andreas Dangel
43ecf1e110
pmd: fix #999 Law of Demeter: False positives and negatives
2013-03-17 11:08:16 +01:00
Andreas Dangel
5f45a28621
pmd: fix #975 false positive in ClassCastExceptionWithToArray
2013-03-17 10:20:58 +01:00
Andreas Dangel
41c44e5d8d
pmd: fix #968 Issues with JUnit4 @Test annotation with expected exception
...
Thanks to Yiannis Paschalidis
2013-03-17 10:20:49 +01:00
Andreas Dangel
040d465137
pmd: fix #976 UselessStringValueOf wrong when appending character arrays
2013-03-16 19:55:45 +01:00
Andreas Dangel
4e5ca16990
pmd: fix #977 MisplacedNullCheck makes false positives
2013-03-16 19:21:15 +01:00
Andreas Dangel
30af4f6381
pmd: fix #985 Suppressed methods shouldn't affect avg CyclomaticComplexity
2013-03-16 18:16:29 +01:00
Andreas Dangel
cece698b04
pmd: fix #984 Cyclomatic complexity should treat constructors like methods
2013-03-16 18:16:20 +01:00
Andreas Dangel
13ef401a63
pmd: fix #997 Rule NonThreadSafeSingleton gives analysis problem
2013-03-16 12:26:11 +01:00
Andreas Dangel
589ec3c6da
pmd: fix #992 Class java.beans.Statement triggered in CloseResource rule
2013-03-16 12:25:53 +01:00
Andreas Dangel
c00ca9e44c
pmd: fix NPE in ConstructorCallsOverridableMethodRule
2013-03-15 21:57:39 +01:00
Andreas Dangel
31f6b9af1a
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:29 +01:00
Andreas Dangel
8eac048c03
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:49:08 +01:00
Andreas Dangel
3b14b3f5cb
pmd: #1002 False +: FinalFieldCouldBeStatic on inner class
2013-03-13 21:12:46 +01:00
Andreas Dangel
adcbdc204f
pmd: fix #1073 Hard coded violation messages CommentSize
2013-03-10 09:54:34 +01:00
Andreas Dangel
a1b1e3f31c
pmd: fix #1074 rule priority doesn't work on group definitions
...
and verify #1067 Custom Ruleset doesn't import the complete ruleset anymore by reference
2013-03-09 17:56:45 +01:00
Andreas Dangel
3e8c42384b
pmd: fixed #1064 Exception running PrematureDeclaration
2013-03-01 22:20:46 +01:00
Andreas Dangel
a00532595a
pmd: fixed #1068 CPD fails on broken symbolic links
2013-03-01 20:17:45 +01:00
Andreas Dangel
3feda38cc3
[maven-release-plugin] prepare for next development iteration
2013-02-03 18:35:38 +01:00
Andreas Dangel
3412d55fc6
[maven-release-plugin] prepare release pmd_releases/5.0.2
pmd_releases/5.0.2
2013-02-03 18:35:37 +01:00
Andreas Dangel
436b7dcb50
pmd: set release date for 5.0.2
2013-02-03 18:29:37 +01:00
Andreas Dangel
d25dadc4b4
pmd: Prepare pmd release 5.0.2
2013-02-03 15:44:02 +01:00
Andreas Dangel
1c051674a0
pmd: update changelog for 5.0.2
2013-02-03 15:34:58 +01:00
Romain PELISSE
3daca86045
pmd: AntTask support for language
...
- fix #1004 targetjdk isn't attribute of PMD task
- introduce a new element, called <language>, that replaces the already existing <version/> element
2013-02-03 15:33:46 +01:00
Romain PELISSE
d95d960de3
pmd: fix #1004 targetjdk isn't attribute of PMD task
2013-02-03 15:33:31 +01:00
Torsten Kleiber
ef7478c350
Fix for bug #1056 "Error while processing" while running on xml file with DOCTYPE reference
...
Change the initial value of XINCLUDE_AWARE_DESCRIPTOR to false
This does validate an invalid doctype reference as in some ide generated xml files exist.
Any xml rule, which needs this property should overwrite this value with true.
2013-02-03 15:32:54 +01:00
Romain PELISSE
c080fdda08
pmd: fix #1049 Errors in "How to write a rule"
2013-02-03 15:31:21 +01:00
Andreas Dangel
e603844a53
pmd: fix #1030 CPD Java.lang.IndexOutOfBoundsException: Index:
2013-01-26 20:08:54 +01:00
Andreas Dangel
52b8be6601
pmd: fixed #947 CloseResource rule fails if field is marked with annotation
2013-01-26 17:58:31 +01:00
Andreas Dangel
7cbb385dbb
pmd: fixed #1011 CloseResource Rule ignores Constructors
2013-01-26 17:57:17 +01:00
Andreas Dangel
61c0b4ea7f
pmd: fixed #1007 Parse Exception with annotation
2013-01-26 17:57:11 +01:00
Andreas Dangel
26fa85a9fa
pmd: fixed #1046 ant task CPDTask doesn't accept ecmascript
2013-01-26 17:56:51 +01:00
Andreas Dangel
98b903897e
pmd: fixed #1039 pmd-nicerhtml.xsl is packaged in wrong location
2013-01-26 17:55:22 +01:00
Andreas Dangel
55b5aa7f27
pmd: update rule-guidelines to changed package names
2013-01-26 17:54:09 +01:00
Andreas Dangel
ffac9894c9
pmd: fixed #1028 False-positive: Compare objects with equals for Enums
2013-01-26 17:54:03 +01:00
Andreas Dangel
d557ed9c01
pmd: verify #1020 Parsing Error
2013-01-26 17:53:56 +01:00
Andreas Dangel
e0b7f6f17c
pmd: fixed #913 SignatureDeclareThrowsException is raised twice
2013-01-26 17:53:49 +01:00
Andreas Dangel
cb9861dd1f
pmd: fixed #878 False positive: UnusedFormalParameter for abstract methods
2013-01-26 17:53:41 +01:00
Andreas Dangel
7ee96a6b52
pmd: fixed #1055 Please add a colon in the ant output after line,column for Oracle JDeveloper IDE usage
2013-01-26 17:53:33 +01:00
Andreas Dangel
ac8e3314a3
pmd: fixed bug #1012 False positive: Useless parentheses.
2013-01-19 19:13:09 +01:00
Andreas Dangel
7989ae1863
pmd: fixed #1060 GodClassRule >>> wrong method
2013-01-19 19:12:59 +01:00
Andreas Dangel
e3708b5030
pmd: fix #1037 Facing a showstopper issue in PMD Report Class
...
* wrapping the report listeners in a thread safe (synchronized) class
* overtaking the listeners for each thread / report
2012-12-17 11:02:24 +01:00
Andreas Dangel
85e493d55f
pmd: fixed #1026 PMD doesn't handle 'value =' in SuppressWarnings annotation
2012-12-16 23:12:29 +01:00
Andreas Dangel
6abbea51dd
pmd: fix #1043 node.getEndLine() always returns 0 (ECMAscript)
...
* added commons-io dependency
* added a SourceCodePositioner to calculate line/column from position
2012-12-16 18:16:39 +01:00
Andreas Dangel
9162917346
pmd: fix #1047 False Positive in 'for' loops for LocalVariableCouldBeFinal in 5.0.1
2012-12-16 12:10:06 +01:00
Andreas Dangel
637006674f
pmd: Fixed bug 1048: CommentContent Rule, String Index out of range Exception
2012-12-07 11:17:44 +01:00
Andreas Dangel
63c1a8fe47
pmd: CLI - make sure we display the usage help text
...
Therefore make the -h option a help option.
Make the auxclasspath option description look nicer - newlines break the layout.
Always display the jcommander usage help text.
And exit with an error code in case there are parameter errors.
2012-12-05 22:02:49 +01:00