1bba78cc65
[java] Remove unnecessary CDATA for UnusedImports tests
2020-02-13 11:12:44 +01:00
63fbfbd8c7
UnusedImports rule now matches regular static imports first and on-demand static imports after that
2020-02-10 23:20:08 +01:00
48cd952feb
Merge branch 'pr-2269'
...
[java] Improve TypeHelper resilience
2020-02-10 19:17:24 +01:00
0c9e813ac4
[java] AppendCharacterWithChar: remove unnecessary CDATA sections
...
The CDATA sections for the descriptions of the test cases
are not necessary.
2020-02-10 18:58:09 +01:00
adbe5eb553
make AppendCharacterWithCharRule ignore String literals, which are part of an expression, such as in StringBuffer.append("X".repeat(5));
2020-02-09 07:23:13 +01:00
5ba1823005
Improve fallback strategy of TypeHelper
2020-02-06 16:56:20 +01:00
cad1f40b02
Merge branch 'pr-2251'
...
[java] FP for InvalidLogMessageFormat when using slf4j-Markers
Fixes #2250
2020-01-26 19:57:20 +01:00
d91e626a0b
Format idents in java grammar
2020-01-25 10:59:57 +01:00
60cb037f80
FP for InvalidLogMessageFormat when using slf4j-Markers
2020-01-25 10:17:59 +01:00
d90d5d267c
Remove trailing whitespace everywhere
2020-01-24 23:40:06 +01:00
58fa793e67
Fix indentation in poms
...
For some reason pmd-apex and pmd-apex-jorje
use 2 spaces while the rest use 4.
2020-01-24 23:17:26 +01:00
c27481f815
Trim trailing spaces in XML
2020-01-24 23:08:52 +01:00
d994700617
[maven-release-plugin] prepare for next development iteration
2020-01-24 17:20:47 +01:00
a28e9e22e5
[maven-release-plugin] prepare release pmd_releases/6.21.0
2020-01-24 17:20:38 +01:00
024fd7bd85
Merge branch 'pr-2244'
...
[core] Deprecate CharStream & generated classes
2020-01-24 16:31:38 +01:00
5feca7fd93
Exclude generated AST*.java files from internalization
2020-01-24 16:19:24 +01:00
35bb524803
[apex][java] *MetricsProvider are @InternalApi
...
Refs #2241
2020-01-24 15:56:04 +01:00
60e97d0ec8
Deprecate javacc generated code
2020-01-22 17:19:29 +01:00
31497715e7
Merge branch 'node-api'
2020-01-19 13:05:32 +01:00
27d7a6c02c
Accomodate children iterable for specialization
2020-01-19 05:57:39 +01:00
436409e707
Merge branch 'issue-1984'
2020-01-17 18:32:16 +01:00
fa85b4786d
[core] Add Node#findDescendantsOfType with crossFindBoundaries that
...
returns a list like all other find-methods
2020-01-17 18:29:41 +01:00
0e2b9cf5b4
[java][apex] Move *MetricsProvider into own classes into metrics packages
...
Make *Metrics.reset package private again
2020-01-17 15:41:54 +01:00
4450d826f7
Merge branch 'pr-2225'
...
[core] CPD: report endLine / column informations for found duplications
2020-01-17 14:59:02 +01:00
d9ad819dab
Replace usages of node methods everywhere
2020-01-17 11:57:19 +01:00
b71575fa36
[java] Cyclomatic complexity is misreported (lack of clearing metrics cache)
...
Fixes #1984
2020-01-17 11:35:32 +01:00
f53993427c
Merge branch 'pr-2172'
...
[core] Deprecate jjtree methods from the Node interface
2020-01-17 08:18:50 +01:00
741bb0b218
Update usages
2020-01-16 22:29:41 +01:00
3062d59892
Merge branch 'master' of github.com:pmd/pmd
2020-01-16 22:28:52 +01:00
d9719e850c
Deprecate ASTCatchStatement::getBlock for #2202
2020-01-16 22:28:40 +01:00
9c682e4a88
Merge branch 'pr-2200'
...
[java] InvalidLogMessageFormat: handle zero placeholders correctly
2020-01-16 18:08:26 +01:00
8ed19b5da6
Added CPD column information for Java.
2020-01-15 15:43:56 +01:00
99fdede0aa
Merge branch 'issue-2212'
2020-01-12 23:28:33 +01:00
904fb14e8b
Use interface instead of AbstractAnyTypeDeclaration
2020-01-12 23:27:24 +01:00
820edada4f
Add 'children' iterable method to Node interface
2020-01-12 18:18:38 +01:00
f7bd2d54b3
Add kotlin test sources to build-helper-mvn-plugin
...
Intellij doesn't pick up on the sources
correctly and classifies them as resources otherwise
2020-01-11 20:33:58 +01:00
bc92fa4590
[java] JavaRuleViolation reports wrong class name
...
Fixes #2212
2020-01-11 12:51:21 +01:00
398b683565
Merge branch 'pr-2177'
...
[lang-test] Factorize parsing logic for tests
2020-01-10 14:07:29 +01:00
c53d9508e9
Small changes from code review
...
* rename BaseParserHelper
* Not using org.jetbrains.annotations.NotNull
2020-01-10 12:18:43 +01:00
6bea1e618b
[java] InvalidLogMessageFormat: handle zero placeholders correctly
...
Fixes #2196
Also refactors the implementation to not use a XPath query anymore.
2020-01-06 18:02:41 +01:00
e335e069f8
Merge branch 'master' into deprecate-jjtree-methods
2020-01-05 23:17:25 +01:00
0ff87229ff
Remove TokenBasedNode
...
I don't think we should expose tokens as an API
yet. They're an implementation detail, not used
much, and the AST should be able to reflect all
the information that can be found in the tokens.
The methods of AbstractNode can be pulled down
to AbstractJjtreeNode and made protected.
2020-01-05 23:13:04 +01:00
a0d0a22e7b
Merge branch 'pr-2190'
...
[java] Deprecations for statements PR
Prerequisite for #2164 for PMD 7.0.0
2020-01-05 19:30:52 +01:00
f973ad6ef3
Merge branch 'pr-2185'
...
[core] Internalize API that exposes ResourceLoader
2020-01-05 19:18:18 +01:00
4cf6291ecb
Fix pmd
2020-01-05 18:20:26 +01:00
caaa5eba9a
Fix issue with analysis of IPv6 mapper IPv4
2020-01-04 04:37:13 -03:00
3b8d694be3
Fix odd logic in AvoidUsingHardCodedIPRule
2019-12-29 22:00:13 +03:00
f33291e372
Deprecate ASTYieldStatement implementing TypeNode
2019-12-26 18:53:22 +01:00
0a0bb6e4bb
Rename getGuardExpressionNode -> getCondition
2019-12-26 18:47:28 +01:00
41baa353b0
Deprecate API of TryStatement that will be renamed
2019-12-26 18:40:24 +01:00