1694 Commits

Author SHA1 Message Date
Clément Fournier
eddff1449e Deprecate TypeKind and related 2019-12-16 00:26:05 +01:00
Andreas Dangel
da194bf427 Merge branch 'pr-2148'
[java] Fix false negative for StringInstantion with array access
2019-12-13 20:14:52 +01:00
Andreas Dangel
2b1e21bf11 Merge branch 'pr-2151'
[java] Fix false-positive in JUnitAssertionsShouldIncludeMessage
2019-12-13 20:10:50 +01:00
Clément Fournier
1f0caf5034 Merge branch 'master' into deprecate-rvf-impls 2019-12-09 01:09:27 +01:00
Clément Fournier
4014ab1dc8 Update release notes 2019-12-08 14:20:23 +01:00
Andreas Dangel
9502cae042 [java] JUnitAssertionsShouldIncludeMessage - False positive with assertEquals and JUnit5
Fixes #2149
2019-12-08 12:10:32 +01:00
Andreas Dangel
3b6fcf4b7a [java] StringInstatiation: False negative with String-array access
Fixes #2141
2019-12-06 11:18:27 +01:00
Clément Fournier
e37f791caa Release notes 2019-12-05 15:28:36 +01:00
Clément Fournier
eb6ceef085 Add comments and update release notes 2019-12-05 15:23:07 +01:00
Andreas Dangel
e87ab21b08 Prepare next development version 2019-11-29 20:05:59 +01:00
Andreas Dangel
d3340c71eb Prepare pmd release 6.20.0 2019-11-29 19:35:32 +01:00
Andreas Dangel
c5d79a0db4 Merge branch 'pr-2138'
[java] Preserve possible type of the target reference for method invocations
2019-11-29 18:41:20 +01:00
Andreas Dangel
19f507fc01 Merge branch 'pr-2137'
[apex] Provide access to underlying query of SoqlExpression
2019-11-29 18:39:38 +01:00
Andreas Dangel
15fc638241 Merge branch 'pr-2126'
[java] ImmutableField: False positive when variable is updated in conditional loop
2019-11-29 18:38:27 +01:00
Andreas Dangel
a85638a0e0 [java] Preserve possible type of the target reference for method invocations
We already resolved the result type of a method invocation,
but in some cases, we also need the type of the target reference
for static method calls.

Reverts the previously introduced fix in UnusedImportsRule.

Fixes #2016
2019-11-29 10:27:19 +01:00
Andreas Dangel
cdf11ed0fa [apex] Provide access to underlying query of SoqlExpression
Fixes #2136
2019-11-28 20:10:31 +01:00
Andreas Dangel
8a6f426fb7 Merge branch 'pr-2104'
[ci] Refactor release scripts
2019-11-24 10:49:29 +01:00
Andreas Dangel
e106e7ac12 [java] ImmutableField: False positive when variable is updated in conditional loop
Fixes #2125
2019-11-24 10:20:21 +01:00
Andreas Dangel
e485396b3a Merge branch 'pr-2121'
[java] Predicates treated like booleans
2019-11-21 20:23:06 +01:00
Andreas Dangel
9d584e009c [doc] Update release notes, refs #2121, fixes #1362 2019-11-21 20:20:35 +01:00
Andreas Dangel
c1674ddd7f Merge branch 'pr-2114'
[doc] Rule deprecation policy
2019-11-21 20:10:56 +01:00
Andreas Dangel
f8bf862d43 Merge branch 'pr-2113'
[java] UnnecessaryFullyQualifiedName false-positive for non-static
nested classes
2019-11-21 20:09:15 +01:00
Andreas Dangel
9cf0083bce Merge branch 'pr-2112'
[java] ImmutableField false positive with inner class
2019-11-21 20:06:46 +01:00
Andreas Dangel
c25049a24b Merge branch 'pr-2111'
[java] False positive MissingStaticMethodInNonInstantiatableClass ...
when inheritors are instantiable
2019-11-21 20:05:20 +01:00
Andreas Dangel
5858048df2 Merge branch 'pr-2101'
[doc] Issue with http://pmdapplied.com/ linking to a gambling Web site
2019-11-21 20:03:49 +01:00
Andreas Dangel
967d3ae4e8 Merge branch 'pr-2100'
[core] Shortnames parameter does not work with Ant
2019-11-21 20:01:50 +01:00
Andreas Dangel
b1b3b37095 Merge branch 'pr-2099'
[java] UnnecessaryFullyQualifiedName: regression / false positive
2019-11-21 20:00:49 +01:00
Andreas Dangel
596365cf75 [doc] Update sidebar
Adding rule deprecation policy
2019-11-18 20:19:13 +01:00
Andreas Dangel
05368bddab [doc] Move rule deprecation policy to devdocs 2019-11-18 20:19:00 +01:00
Andreas Dangel
f17758637f [doc] Rule deprecation policy 2019-11-15 14:48:57 +01:00
Andreas Dangel
461977b8f6 [java] UnnecessaryFullyQualifiedName false-positive for non-static nested classes
Fixes #2029
2019-11-15 13:06:31 +01:00
Andreas Dangel
9dbbfba420 [java] ImmutableField false positive with inner class
Fixes #2075
2019-11-15 10:17:59 +01:00
Andreas Dangel
f93bea624c [java] False positive MissingStaticMethodInNonInstantiatableClass when inheritors are instantiable
Fixes #2102
2019-11-15 09:52:55 +01:00
Andreas Dangel
6bf6e2240c [doc] Update release notes, refs #2106, fixes #2105 2019-11-15 08:51:43 +01:00
Andreas Dangel
1d6aab0a56 [doc] Update release notes, fixes #2090 2019-11-11 19:41:16 +01:00
Andreas Dangel
4e8bc2b36a [doc] Issue with http://pmdapplied.com/ linking to a gambling Web site
Fixes #2002
2019-11-08 14:52:07 +01:00
Andreas Dangel
769408f25e [doc] Update release notes, closes #2091 2019-11-08 14:15:27 +01:00
Andreas Dangel
2541e22c38 [core] Shortnames parameter does not work with Ant
Fixes #2062
2019-11-08 12:28:35 +01:00
Andreas Dangel
f3c4ec9ad9 [java] UnnecessaryFullyQualifiedName: regression / false positive
Fixes #2098
2019-11-08 11:36:26 +01:00
Andreas Dangel
a93b6819b3 [doc] Update release notes, fixes #1861, refs #2088 2019-11-08 10:47:20 +01:00
Andreas Dangel
4c9816fc2e [doc] Update documentation about language versions 2019-11-08 10:40:33 +01:00
Andreas Dangel
ee7f6d0494 [core] RuleSetFactory - recognize rule reference for same ruleset
There are two variants, how a renamed rule can be expressed in the
ruleset via a deprecated rule reference: referencing just the
new rule name or referencing the ruleset+new rule name. The latter
case was not covered yet, it was not detected, that the rule ref
references are rule in the same ruleset.

Fixes #2096
2019-11-04 20:43:38 +01:00
Andreas Dangel
c75e2bd000 [apex] Really fix ApexLexer logging
The fix introduced with #503 (fba00843bb523cbeb06157c4793ffc29bd9a6ee7)
was incomplete and didn't work:
* The logger uses the full class name insteand of simple name
* After we changed the log level of the logger, the logger
  could be garbage collected before ApexLexer retrieves it and
  thus the configuration could be lost
2019-11-02 09:47:16 +01:00
Andreas Dangel
702b4c1e4c Merge branch 'pr-2089'
[core] Minor unrelated improvements to code
2019-11-01 09:05:54 +01:00
Andreas Dangel
6c4ff288d3 [doc] Update release notes, refs #2089 2019-11-01 09:05:08 +01:00
Andreas Dangel
8e745acf37 Prepare next development version 2019-10-31 19:24:21 +01:00
Andreas Dangel
433f8c06a2 Prepare pmd release 6.19.0 2019-10-31 18:27:57 +01:00
Andreas Dangel
73e48edaaa Merge branch 'pr-2054'
[java] Rename rule InvalidSlf4jLoggingFormat to InvalidLogMessageFormat
2019-10-30 19:30:44 +01:00
Andreas Dangel
39e07f6fbc Merge branch 'pr-2084'
[core] Deprecate Parser#getSuppressMap
2019-10-30 19:25:59 +01:00
Andreas Dangel
79fa9d2137 Merge branch 'pr-2083'
[core] Enable type resolution by default for XPath rules
2019-10-29 19:42:58 +01:00