702 Commits

Author SHA1 Message Date
Andreas Dangel
9e2368257f Merge branch 'pr-2241'
[core] Simplify metrics framework
2020-02-16 10:57:10 +01:00
Gwilym Kuiper
202da60d2d Fix checkstyle errors 2020-02-12 09:49:12 +00:00
Gwilym Kuiper
bcf1c88cc2 If suppress marker is null, don't check for suppressions 2020-02-12 09:34:04 +00:00
Gwilym Kuiper
28ce8f6486 Properly extract user message 2020-02-12 08:38:31 +00:00
Gwilym Kuiper
4916316e42 Use the suppress marker from parser options 2020-02-11 17:49:06 +00:00
Gwilym Kuiper
15cd1a2d59 Use the PMD.SUPPRESS_MARKER rather than duplicating the string 2020-02-11 17:43:20 +00:00
Gwilym Kuiper
c0ec1f67c9 Only parse source code once for doc comments and suppressions 2020-02-11 17:41:55 +00:00
Gwilym Kuiper
2922694cdd Copy paste the apex doc detector to calculate the suppress map
We can generate the suppress map from the individual tokens that get
passed from the lexer.
2020-02-11 17:32:22 +00:00
Clément Fournier
d90d5d267c Remove trailing whitespace everywhere 2020-01-24 23:40:06 +01:00
Clément Fournier
c27481f815 Trim trailing spaces in XML 2020-01-24 23:08:52 +01:00
Andreas Dangel
d994700617 [maven-release-plugin] prepare for next development iteration 2020-01-24 17:20:47 +01:00
Andreas Dangel
a28e9e22e5 [maven-release-plugin] prepare release pmd_releases/6.21.0 2020-01-24 17:20:38 +01:00
Andreas Dangel
35bb524803 [apex][java] *MetricsProvider are @InternalApi
Refs #2241
2020-01-24 15:56:04 +01:00
Clément Fournier
08544a7539 Throw on metric not supported 2020-01-20 21:54:53 +01:00
Clément Fournier
055ae4abf0 Checkstyle 2020-01-20 00:57:45 +01:00
Clément Fournier
b707e6e9ff Fix caching
Non supported nodes produce NaN which is
converted to zero when converting to int
2020-01-19 13:04:22 +01:00
Clément Fournier
f282a3ad5c Move metric providers back into language handlers
Reverts part of #2231
2020-01-19 12:47:47 +01:00
Clément Fournier
2123ab3d5d Simplify metrics framework 2020-01-19 12:35:55 +01:00
Clément Fournier
436409e707 Merge branch 'issue-1984' 2020-01-17 18:32:16 +01:00
Andreas Dangel
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
Andreas Dangel
4450d826f7 Merge branch 'pr-2225'
[core] CPD: report endLine / column informations for found duplications
2020-01-17 14:59:02 +01:00
Andreas Dangel
817c3d1127 CPD: Remove deprecations in Mark / TokenEntry
* Provide these values for more languages
2020-01-17 14:47:23 +01:00
Andreas Dangel
0fab38bdbd Merge remote-tracking branch 'origin/master' 2020-01-17 12:18:12 +01:00
Andreas Dangel
1617aa5311 [apex] Update Apex Support to version 48 (Spring '20) 2020-01-17 12:10:11 +01:00
Clément Fournier
d9ad819dab Replace usages of node methods everywhere 2020-01-17 11:57:19 +01:00
Andreas Dangel
b71575fa36 [java] Cyclomatic complexity is misreported (lack of clearing metrics cache)
Fixes #1984
2020-01-17 11:35:32 +01:00
Clément Fournier
c75875f981 Add test 2020-01-17 11:29:28 +01:00
Clément Fournier
eb7738c341 Make FormalComment extend ApexNode 2020-01-17 11:17:35 +01:00
Andreas Dangel
f53993427c Merge branch 'pr-2172'
[core] Deprecate jjtree methods from the Node interface
2020-01-17 08:18:50 +01:00
Clément Fournier
5f44a5fc54 [apex] Use base parser class for apex
Refs #2177, #1937
2020-01-10 17:13:19 +01:00
Clément Fournier
9023d86945 Merge branch 'master' into deprecate-jjtree-methods 2019-12-23 12:41:08 +01:00
Andreas Dangel
0b926efaab Merge branch 'pr-2115'
[apex] ApexCSRF changes
2019-12-18 09:58:32 +01:00
Andreas Dangel
66e26a5168 [doc] Update release notes, refs #2115 2019-12-18 09:56:08 +01:00
Clément Fournier
1aabc53fa2 Deprecate childrenAccept in all modules 2019-12-17 17:39:13 +01:00
Andreas Dangel
0d9fe56ec3 Fixes from review #2115 2019-12-16 11:37:47 +01:00
Clément Fournier
b1ba962ddf Deprecate RuleViolation impls 2019-12-05 15:26:03 +01:00
Clément Fournier
eb6ceef085 Add comments and update release notes 2019-12-05 15:23:07 +01:00
Clément Fournier
bb7478cd0a Deprecate RuleViolationFactory impls
Internal APIs
2019-12-05 15:18:35 +01:00
Andreas Dangel
00392cefc2 [maven-release-plugin] prepare for next development iteration 2019-11-29 19:46:14 +01:00
Andreas Dangel
78da370fb8 [maven-release-plugin] prepare release pmd_releases/6.20.0 2019-11-29 19:46:05 +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
3dda94ec2a [apex] Fix ApexCSRF false-negatives with initializers
(Static) initializers were not considered yet.
2019-11-15 21:22:02 +01:00
Andreas Dangel
64f44369be [apex] Move ApexCSRF rule from security to errorprone
Also move the Helper class into a internal package and
deprecated the old Helper class.

Refs #2064
2019-11-15 21:20:46 +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
deec9c44b2 [maven-release-plugin] prepare for next development iteration 2019-10-31 18:36:51 +01:00
Andreas Dangel
2881b6f585 [maven-release-plugin] prepare release pmd_releases/6.19.0 2019-10-31 18:36:42 +01:00
Clément Fournier
54b7679329 Same for apex 2019-09-25 01:11:46 +02:00
Andreas Dangel
e536ca1947 [maven-release-plugin] prepare for next development iteration 2019-09-15 10:14:14 +02:00
Andreas Dangel
3f42cca200 [maven-release-plugin] prepare release pmd_releases/6.18.0 2019-09-15 10:14:05 +02:00
Andreas Dangel
9eaffbd3e6 Update generated rule documentation 2019-09-14 17:24:26 +02:00