Commit Graph

2626 Commits

Author SHA1 Message Date
365e1c9e8b [maven-release-plugin] prepare release pmd_releases/6.17.0 2019-07-28 10:24:43 +02:00
aa55a0108c [java] CloseResource: ignore java.io.CharArrayWriter by default
Refs #1928
2019-07-27 10:27:18 +02:00
f1fb425313 Improve UseLocaleWithCaseConversions doc based on #1929 2019-07-25 02:42:33 +02:00
be67ad97b0 Merge branch 'pr-1916' 2019-07-23 20:22:30 +02:00
f7c16d4abc [java] MissingStaticMethodInNonInstantiatableClass
* Migrate to XPath 2.0
* Add property "annotations"
2019-07-23 20:19:47 +02:00
26e74b880e Merge branch 'issue-1910' 2019-07-23 15:40:52 +02:00
64abea7f42 Merge branch 'pr-1905' 2019-07-22 20:05:53 +02:00
f9bb5b85a2 [java] DataflowAnomalyAnalysis - add test case for #1749 2019-07-22 19:34:02 +02:00
56b1bfbd97 Remove wasted lists and Simplify 2019-07-22 14:22:26 +09:00
83f4682063 fix typo 2019-07-22 12:57:21 +09:00
1dca17fd1b Verifying line numbers and the messages in Test Cases 2019-07-22 12:46:24 +09:00
7c77945164 #1921 - exclude ByteArrayInputStream from CloseResource 2019-07-21 16:38:35 +02:00
1ef5079b29 [java] ATFD calculation problem
* Fixes #1910
* Method call chains are now considered
2019-07-20 11:35:27 +02:00
b19b7474fe Merge branch 'pr-1924' 2019-07-19 11:17:38 +02:00
cb62b7e472 Fix false positive on UnsynchronizedStaticFormatterRule 2019-07-18 19:35:09 -03:00
ca34d4fa1c Add failing test case for #1903 2019-07-18 19:34:51 -03:00
33f3129562 Modify expected problems and exclude for-each case 2019-07-18 10:54:16 +09:00
82ea3ed51b Simplify nested loop 2019-07-17 19:49:08 +09:00
24cb0aa976 add test cases for reduce False Positive 2019-07-17 19:26:22 +09:00
d080e3cb48 add test cases for reduce False Positive 2019-07-17 19:02:54 +09:00
a9c68a55b3 issue-1833 2019-07-13 21:57:58 +02:00
6c9ecfa7c1 [doc] Escape code examples for liquid with {%raw%}
Fixes #1898
2019-07-12 10:57:10 +02:00
6cb0701498 [doc] Fix broken internal links
* Links to pages need to be relative...
* Fixes #1906
2019-07-06 11:15:30 +02:00
cf16484ec6 Modifiying for reduce Fasle Positive in DFA Analysis Rule 2019-07-05 10:04:37 +09:00
1a690ed1e8 Fix DoubleBraceInitialization example 2019-07-01 18:33:48 +02:00
73a8e4cc69 [maven-release-plugin] prepare for next development iteration 2019-06-30 10:33:08 +02:00
45facbd323 [maven-release-plugin] prepare release pmd_releases/6.16.0 2019-06-30 10:32:58 +02:00
92184ba56f Merge branch 'pr-1539' 2019-06-30 09:28:16 +02:00
210a3dc8f9 Merge branch 'pr-1894' 2019-06-30 09:25:45 +02:00
da69dc777a [java] CloseResource: fix another FP 2019-06-29 15:29:03 +02:00
c2a45c64ca [java] CloseResource: verify first argument for chained streams 2019-06-29 15:01:24 +02:00
74f36bf18e [java] Deprecate AvoidFinalLocalVariable
Fixes #1612, Refs #1482
2019-06-29 14:34:36 +02:00
d10d522d1f Explain the existence of AvoidFinalLocalVariable in it's description 2019-06-29 14:20:36 +02:00
40849dda65 [java] CloseResource: consider chained streams
This assumes that the underlaying stream is always the
first argument in the constructor call.
2019-06-29 14:13:42 +02:00
5825f6190f Merge branch 'master' into close-resource-io 2019-06-29 12:30:18 +02:00
18006de84c [java] CloseResource: Update release notes and rule documentation 2019-06-29 12:29:40 +02:00
ae046bb516 [java] CloseResource: verify old behaviour can be restored 2019-06-29 12:19:24 +02:00
62a2c12585 [java] CloseResource: consider javax.jms.Connection as before
Adding back the default types java.sql.Connection etc. so that
we also match javax.jms.Connection in case no type information
is available as before.

Also fix the reported type when method calls are involved.
2019-06-29 12:15:19 +02:00
f6cc999f2c [java] CloseResource: Use simple class name in message
Report simple class name to retain same message as before.
This helps in comparing the reports.
2019-06-29 11:22:03 +02:00
314bb71336 Fix reporting of nested classes inside interfaces/enums 2019-06-29 11:13:51 +02:00
7db495f7aa [java] CommentDefaultAccessModifier: add new property "checkTopLevelTypes"
Fixes #1880
2019-06-29 10:30:45 +02:00
c66fb768ef Merge branch 'pr-1889' 2019-06-28 21:10:55 +02:00
d7b0a21f99 Merge branch 'pr-1887' 2019-06-28 20:59:39 +02:00
9cf19214ff Move to bestpractices 2019-06-26 22:18:45 +02:00
45331699ab Add to quickstart ruleset 2019-06-26 19:59:16 +02:00
8fc0e9c875 Add test cases 2019-06-26 19:53:18 +02:00
8e988fd7fd Add DoubleBraceInitialization to design.xml 2019-06-26 19:40:11 +02:00
6b3ccdf069 Add a test case 2019-06-24 12:11:12 +02:00
86ce57ca3c [java] CloseResource: support try-with-resources 2019-06-22 19:01:24 +02:00
1e03ae5c06 [java] CloseResource - add allowedResourceTypes property for exceptions
By default, ByteArrayOutputStream and StringWriter are excluded from
the rule.
2019-06-22 12:24:43 +02:00