686 Commits

Author SHA1 Message Date
Andreas Dangel
a283615299
Refactor LanguageMetdata::extensions usages 2023-02-17 09:04:16 +01:00
Andreas Dangel
e2bb0c8480
Reuse names and extensions for CPD language 2023-02-17 09:04:15 +01:00
Andreas Dangel
d7d2ad541e
Add explicit language versions (#4120) 2023-02-17 09:04:12 +01:00
Clément Fournier
c572cb88d7
Rename package cpd.internal to cpd.impl 2023-02-13 15:18:37 +01:00
Clément Fournier
9c3434a07b
Split cpd/pmd specific methods into...
subinterfaces of Language
2023-02-13 15:16:48 +01:00
Clément Fournier
51b5016163
Cleanups 2023-02-12 20:47:09 +01:00
Clément Fournier
1828faeadc
Fix some modules 2023-02-11 19:27:46 +01:00
Clément Fournier
cf81809990
Change a ton of stuff in CPD 2023-02-10 18:21:23 +01:00
Clément Fournier
d4c05d1fb5
Make pmd language have a hook to launch CPD
This allows removing the CPD language instances,
sharing more logic between CPD and PMD, and using
language properties to configure CPD and PMD uniformly.
2023-02-10 16:45:52 +01:00
Clément Fournier
ebe4610389
Remove ability to set custom delimiter 2023-02-05 20:37:45 +01:00
Clément Fournier
872a41b4e9
Make ApexProcessor not implement LVH 2023-02-04 20:22:49 +01:00
Clément Fournier
ef365cd9aa
Merge branch '7.0.x' into pmd7-language-lifecycle 2023-02-02 01:04:53 +01:00
Andreas Dangel
5772440a79
[maven-release-plugin] prepare for next development iteration 2023-01-28 10:31:53 +01:00
Andreas Dangel
de1b12b060
[maven-release-plugin] prepare release pmd_releases/6.54.0 2023-01-28 10:31:46 +01:00
Andreas Dangel
9d05cff8cc
Merge branch 'master' into experimental-apex-parser 2023-01-14 11:48:12 +01:00
Andreas Dangel
c5a9e785ff
Merge branch 'pmd/7.0.x' into pmd7-junit5-part3 2023-01-10 12:58:51 +01:00
Andreas Dangel
6a6acb9b43
[maven-release-plugin] prepare for next development iteration 2022-12-31 18:22:10 +01:00
Andreas Dangel
37103451bf
[maven-release-plugin] prepare release pmd_releases/6.53.0 2022-12-31 18:22:04 +01:00
Aaron Hurst
1a5c57155e Update tested return type name to match Summit, which returns the syntactic type name.
Change-Id: I6ea22b890e60f24c2684f85753223f240e33509a
2022-12-02 17:11:30 +00:00
Aaron Hurst
e9eafdde3e Change case normalization of primitive from 'ID' to 'Id' to match existing behavior.
Change-Id: I7b3406a60bbc18dc2b1e441b8c0122452f709404
2022-12-02 17:11:30 +00:00
Aaron Hurst
d57d482035 Remove pmd-visualforce Jorje dependency.
Change-Id: Id580cdfa39b4288c239a496ed4a61afb123b0b2f
2022-12-01 21:32:21 +00:00
Clément Fournier
c71756a4c1
Merge branch '7.0.x' into pmd7-language-lifecycle 2022-11-26 18:42:34 +01:00
Andreas Dangel
1634bd0043
[maven-release-plugin] prepare for next development iteration 2022-11-26 10:24:58 +01:00
Andreas Dangel
e90bf0f11b
[maven-release-plugin] prepare release pmd_releases/6.52.0 2022-11-26 10:24:53 +01:00
Andreas Dangel
eff0168631
[vf] Fix compile error 2022-11-25 19:49:33 +01:00
Andreas Dangel
fcfbb33386
Merge branch 'master' into pmd/7.0.x 2022-11-25 19:05:06 +01:00
Andreas Dangel
faa5bf6e00
[doc] Document deprecated API 2022-11-25 15:10:30 +01:00
Clément Fournier
cef4c30af6
Merge branch '7.0.x' into pmd7-language-lifecycle 2022-11-24 22:39:59 +01:00
Aaron Hurst
1029d6b24d Fix checkstyle violations.
Change-Id: I0aa6ecfeb343f2e0b48d2ebfd176a877a72f40f6
2022-11-24 20:35:42 +00:00
Aaron Hurst
e62b71f89a Add back DataType.fromBasicType(BasicType) and test.
Isolate references to BasicType inside method implementation.

Change-Id: I4be2ad5b8b42fb7a84da0755106d8f0b08034690
2022-11-24 15:55:43 +00:00
Aaron Hurst
c9e21cd4eb Tweak terminology: the map is case-normalized not case-insensitive.
Change-Id: I3499dc615262612b6c220b7840d3ab8cca87c226
2022-11-22 21:38:03 +00:00
Aaron Hurst
5ad37f6757 Replace uses of Jorje types in pmd-visualforce.
Summary: store and compare primitive type names instead of using BasicType enum.

Udpate unit tests and add a few more cases.

Change-Id: If4e5bb33d11793813839b82cf8beb043aad2ce34
2022-11-22 20:15:39 +00:00
Andreas Dangel
5a4bf05493
[maven-release-plugin] prepare for next development iteration 2022-10-29 09:34:25 +02:00
Andreas Dangel
66e834049f
[maven-release-plugin] prepare release pmd_releases/6.51.0 2022-10-29 09:34:19 +02:00
Andreas Dangel
88b8209958
Migrate RuleSetFactoryTests to JUnit 5 2022-10-13 17:18:13 +02:00
Andreas Dangel
00924bea75
Migrate LanguageVersionTests to JUnit5
Also move LanguageVersionTests into their language packages
and add missing tests
2022-10-13 17:17:59 +02:00
Andreas Dangel
008fe948c6
[visualforce] Migrate tests to JUnit5 2022-10-03 16:30:02 +02:00
Andreas Dangel
13d9a9457f
[maven-release-plugin] prepare for next development iteration 2022-09-30 15:39:14 +02:00
Andreas Dangel
37f6d8254c
[maven-release-plugin] prepare release pmd_releases/6.50.0 2022-09-30 15:39:08 +02:00
Clément Fournier
99e03114fc
checkstyle 2022-09-11 23:50:46 +02:00
Clément Fournier
a10a73c42a
Move nspmd.processor package to nspmd.lang.impl 2022-09-11 17:25:25 +02:00
Clément Fournier
11274d5651
Doc 2022-09-11 17:21:01 +02:00
Clément Fournier
1187a9a977
Merge branch '7.0.x' into pmd7-language-lifecycle 2022-09-11 13:37:28 +02:00
Andreas Dangel
8387cd6409
Merge branch 'pmd/7.0.x' into pr-4049 2022-09-10 20:08:30 +02:00
Andreas Dangel
90663d746b
[maven-release-plugin] prepare for next development iteration 2022-08-31 19:19:27 +02:00
Andreas Dangel
4b4ebabc2d
[maven-release-plugin] prepare release pmd_releases/6.49.0 2022-08-31 19:19:22 +02:00
Andreas Dangel
995d00fde3
[maven-release-plugin] prepare for next development iteration 2022-07-30 11:35:57 +02:00
Andreas Dangel
6aa2b47f2e
[maven-release-plugin] prepare release pmd_releases/6.48.0 2022-07-30 11:35:53 +02:00
Clément Fournier
019169d69d
make language of parser task more important than the lang property 2022-07-23 00:12:27 +02:00
Clément Fournier
2cb54ff1bc
fix pmd-vf
needs a dependency mechanism
to prevent apex from being pruned
2022-07-21 15:13:16 +02:00
Clément Fournier
3cecfaf38b
convert most lang mods to new base class 2022-07-21 02:10:21 +02:00
Clément Fournier
ec081ed2e5
wip 2022-07-21 01:18:02 +02:00
Clément Fournier
0732739280
remove usages of lv::getLvh 2022-07-21 00:59:28 +02:00
Clément Fournier
7c9244d631
make lprocessor available on nodes 2022-07-21 00:25:18 +02:00
Clément Fournier
2952df371e
try to adapt tests
we need to remove usages of LanguageVersion::getLanguageVersionHandler
2022-07-20 20:59:40 +02:00
Clément Fournier
10ff8f6f0e
Wire in existing langs 2022-07-20 18:18:40 +02:00
Clément Fournier
be4b0d9bbe
binary compatibility measures 2022-07-19 23:26:22 +02:00
Clément Fournier
6973ed25db
last cleanups 2022-07-19 15:52:30 +02:00
Clément Fournier
63c01f0f5b
Merge branch '7.0.x' into text-utils-javacc 2022-07-17 17:06:37 +02:00
Clément Fournier
ba105a646c
progress, remove ContextualizedTest 2022-07-17 14:49:48 +02:00
Clément Fournier
8587844c1c
Fix build
Refs #2716 - langs aren't declared in java anymore
2022-07-17 14:03:23 +02:00
Clément Fournier
495dbb750f
Merge branch 'text-utils-simple' into pmd7-lang-registry-non-static 2022-07-16 18:48:57 +02:00
Clément Fournier
a56ba97e29
Fix merge 2022-07-16 17:55:32 +02:00
Clément Fournier
59d931cd91
Merge remote-tracking branch 'upstream/pmd/7.0.x' into text-utils-simple 2022-07-10 13:50:03 +02:00
Andreas Dangel
a5006f6383
[maven-release-plugin] prepare for next development iteration 2022-06-25 09:30:43 +02:00
Andreas Dangel
07eb3d2d80
[maven-release-plugin] prepare release pmd_releases/6.47.0 2022-06-25 09:30:37 +02:00
Andreas Dangel
2bdc8a8263
Merge branch 'master' into pmd/7.0.x 2022-06-04 15:59:22 +02:00
Andreas Dangel
066b510eef
chore: Fix project.parent.relativePath in pom.xml
It must point to a file, pointing to a directory
is not valid.
2022-06-04 11:00:30 +02:00
Andreas Dangel
04c1271d88
[maven-release-plugin] prepare for next development iteration 2022-05-28 11:04:32 +02:00
Andreas Dangel
a75acdeff8
[maven-release-plugin] prepare release pmd_releases/6.46.0 2022-05-28 11:04:27 +02:00
Andreas Dangel
fe414864a0
Replace IOUtils with IOUtil, Fix compile errors 2022-05-13 17:21:43 +02:00
Clément Fournier
58ee669696
Add more tests for unicode escape 2022-04-30 22:58:07 +02:00
Andreas Dangel
ec64315ad7
[maven-release-plugin] prepare for next development iteration 2022-04-30 09:38:24 +02:00
Andreas Dangel
1d2b40b3c0
[maven-release-plugin] prepare release pmd_releases/6.45.0 2022-04-30 09:38:19 +02:00
Clément Fournier
7e8b5e37fc
Merge branch 'text-utils-simple' into lang-registry-non-static 2022-04-09 21:45:22 +02:00
Clément Fournier
b8efedf967
Make lang registry non static 2022-04-09 21:44:01 +02:00
Clément Fournier
407ffeaf74
Merge branch '7.0.x' into lang-registry-non-static 2022-04-09 20:11:52 +02:00
Clément Fournier
a611af163b
Merge branch 'text-utils-simple' into text-utils-javacc 2022-04-02 16:34:17 +02:00
Clément Fournier
163a9274dc
Ignore some cpp tests 2022-04-02 15:54:31 +02:00
Clément Fournier
474deca0e2
Fix cpd 2022-04-02 15:43:28 +02:00
Clément Fournier
b2b81784ff
Fix compil failures 2022-04-02 15:17:06 +02:00
Andreas Dangel
be3e941a08
[maven-release-plugin] prepare for next development iteration 2022-03-27 17:01:59 +02:00
Andreas Dangel
6859f8db36
[maven-release-plugin] prepare release pmd_releases/6.44.0 2022-03-27 17:01:54 +02:00
Clément Fournier
2c0a641b2c
Cleanups 2022-03-07 20:17:15 +01:00
Clément Fournier
b0b7f69480
Merge branch 'text-utils-simple' into text-utils-javacc 2022-03-05 19:35:10 +01:00
Clément Fournier
af5aceeff8
Merge branch 'pmd7-merge-master' into text-utils-simple 2022-03-05 18:16:49 +01:00
Clément Fournier
f4f7f4b65d
Move nspmd.util.document -> lang.document 2022-03-05 18:05:04 +01:00
Clément Fournier
d41e0d0f32
Merge branch '7.0.x' into pmd7-merge-master 2022-03-05 11:53:55 +01:00
Clément Fournier
9808c743d2
Fix merge 2022-03-03 20:46:01 +01:00
Clément Fournier
1921cd7043
Merge remote-tracking branch 'upstream/pmd/7.0.x' into remove-processing-stages 2022-03-01 21:28:08 +01:00
Andreas Dangel
69fb502883
[maven-release-plugin] prepare for next development iteration 2022-02-26 10:01:08 +01:00
Andreas Dangel
dd0ee6190b
[maven-release-plugin] prepare release pmd_releases/6.43.0 2022-02-26 10:01:03 +01:00
Clément Fournier
bf91e70c9f
Update tests 2022-02-25 19:50:50 +01:00
Andreas Dangel
958be69b19
[visualforce] Use slf4j 2022-02-18 18:00:55 +01:00
Clément Fournier
8cc7c7bbea
Merge branch '7.0.x' into analysis-listener 2022-02-07 00:54:47 +01:00
Andreas Dangel
668ed37ffb
[visualforce] Fix PMD dogfood issues 2022-02-03 12:59:32 +01:00
Andreas Dangel
dc19597020
[maven-release-plugin] prepare for next development iteration 2022-01-29 09:53:38 +01:00
Andreas Dangel
391c32589f
[maven-release-plugin] prepare release pmd_releases/6.42.0 2022-01-29 09:53:32 +01:00
Clément Fournier
9ce2213b0e
Merge remote-tracking branch 'pmd6/master' into 7.0.x 2022-01-25 22:31:53 +01:00
Vyom Yadav
0f01d4686e
[core] Updated DataType.java 2022-01-21 11:23:32 +05:30
Clément Fournier
9d1ec11bbd
BAD Merge branch 'text-utils-simple' into text-utils-javacc 2021-12-22 19:24:49 +01:00
Clément Fournier
853278345f
merge 2021-12-16 17:53:25 +01:00
Clément Fournier
913d0ab272
Merge branch '7.0.x' into analysis-listener 2021-12-16 16:31:50 +01:00
Andreas Dangel
3a97618d5d
[maven-release-plugin] prepare for next development iteration 2021-11-27 11:21:17 +01:00
Andreas Dangel
ac68de1f51
[maven-release-plugin] prepare release pmd_releases/6.41.0 2021-11-27 11:21:12 +01:00
Andreas Dangel
f12710071f
[maven-release-plugin] prepare for next development iteration 2021-10-30 10:00:20 +02:00
Andreas Dangel
be09a31654
[maven-release-plugin] prepare release pmd_releases/6.40.0 2021-10-30 10:00:15 +02:00
Andreas Dangel
0399bbbfc8
[maven-release-plugin] prepare for next development iteration 2021-09-25 13:46:09 +02:00
Andreas Dangel
90b051bfff
[maven-release-plugin] prepare release pmd_releases/6.39.0 2021-09-25 13:46:04 +02:00
Andreas Dangel
d192abff5a
Merge remote-tracking branch 'adangel/fix-cpd' into pmd7-fix-cpd 2021-09-09 09:56:01 +02:00
Andreas Dangel
bd6c72e0f5
Fix code duplications 2021-09-08 20:11:49 +02:00
Andreas Dangel
65af1c0675
[maven-release-plugin] prepare for next development iteration 2021-08-28 17:27:18 +02:00
Andreas Dangel
7d11a02052
[maven-release-plugin] prepare release pmd_releases/6.38.0 2021-08-28 17:27:12 +02:00
Andreas Dangel
821f7a849b
[maven-release-plugin] prepare for next development iteration 2021-07-31 19:02:07 +02:00
Andreas Dangel
18df47ce6e
[maven-release-plugin] prepare release pmd_releases/6.37.0 2021-07-31 19:01:59 +02:00
Clément Fournier
85fd4fa9f4
Merge branch 'text-utils-simple' into text-utils-javacc 2021-07-08 18:45:55 +02:00
Clément Fournier
4d320fdbb9
Merge branch 'analysis-listener' into text-utils-simple 2021-07-08 16:54:40 +02:00
Clément Fournier
62ca0edb2a
Merge branch '7.0.x' into analysis-listener 2021-07-08 15:23:00 +02:00
Andreas Dangel
f68bf5ce05
[maven-release-plugin] prepare for next development iteration 2021-06-26 10:24:15 +02:00
Andreas Dangel
45d1605a03
[maven-release-plugin] prepare release pmd_releases/6.36.0 2021-06-26 10:24:07 +02:00
Andreas Dangel
5fbf9b2921
Merge branch 'master' into pmd/7.0.x 2021-06-10 17:52:32 +02:00
Andreas Dangel
4fb19e2a5e
Bump pmd from 6.34.0 to 6.35.0 2021-05-29 09:06:39 +02:00
Andreas Dangel
9fdfecf731
[maven-release-plugin] prepare for next development iteration 2021-05-29 07:24:47 +02:00
Andreas Dangel
b49fb2014d
[maven-release-plugin] prepare release pmd_releases/6.35.0 2021-05-29 07:24:39 +02:00
Andreas Dangel
319900cd43 [maven-release-plugin] prepare for next development iteration 2021-04-24 16:41:17 +02:00
Andreas Dangel
bfeaa1b377 [maven-release-plugin] prepare release pmd_releases/6.34.0 2021-04-24 16:41:10 +02:00
Clément Fournier
d9a3ef9691 Merge branch 'text-utils-simple' into text-utils-javacc 2021-03-30 03:04:07 +02:00
Clément Fournier
50c00f4f9a Merge branch 'analysis-listener' into text-utils-simple 2021-03-30 02:38:13 +02:00
Clément Fournier
0011b64c35 Merge branch '7.0.x' into analysis-listener 2021-03-29 23:14:29 +02:00
Andreas Dangel
37e5525fd5 [maven-release-plugin] prepare for next development iteration 2021-03-27 16:25:18 +01:00
Andreas Dangel
dc1c9d0aed [maven-release-plugin] prepare release pmd_releases/6.33.0 2021-03-27 16:25:13 +01:00
Andreas Dangel
e0de01ebe9 [maven-release-plugin] prepare for next development iteration 2021-02-27 09:44:05 +01:00
Andreas Dangel
0848e230d0 [maven-release-plugin] prepare release pmd_releases/6.32.0 2021-02-27 09:43:58 +01:00
Clément Fournier
268f66f4cd Simplify tests 2021-02-13 21:28:24 +01:00
Clément Fournier
8fb4a082d8 Remove sentinel value 2021-02-13 21:18:47 +01:00
Clément Fournier
5ca13f1bdd Merge branch 'core-parser-tasks' into 7.0.x 2021-02-13 20:51:11 +01:00
Andreas Dangel
2ea0328678 [maven-release-plugin] prepare for next development iteration 2021-01-30 18:04:17 +01:00
Andreas Dangel
7d6e6239c5 [maven-release-plugin] prepare release pmd_releases/6.31.0 2021-01-30 18:04:08 +01:00
Andreas Dangel
cf2b8aca3a Merge branch 'master' into pmd/7.0.x 2021-01-30 12:04:28 +01:00
Joshua Feingold
d88d8ff913
@W-8680425@: Added LINKTO back into the list of inherently safe functions. 2021-01-29 10:02:09 -06:00
Joshua Feingold
a4916f94fc
@W-8680425@: Pulled out some repeated code into convenience method. 2021-01-25 16:33:47 -06:00
Joshua Feingold
c14398d19f
@W-8680425@: Refactored escape detection in script context. Multiple false positives resolved. 2021-01-25 14:39:25 -06:00
Clément Fournier
e9b1499508 Merge branch 'remove-xml-dom-rule' into core-parser-tasks 2021-01-24 16:42:24 +01:00
Clément Fournier
8af799529d Merge branch '7.0.x' into pmd7-ruleset-loader 2021-01-22 17:11:26 +01:00
Andreas Dangel
b58c52db22 Fix compile errors and tests 2021-01-21 21:30:03 +01:00
Andreas Dangel
5dac4a7795 Merge branch 'master' into pmd/7.0.x 2021-01-21 21:00:42 +01:00
Andreas Dangel
221c9e785e Merge pull request #3005 from rmohan20:removeOnEventEncoding
[vf] [New Rule] Handle XSS violations that can occur within Html Style
tags #3005
2021-01-21 15:07:05 +01:00
Andreas Dangel
dc4cdf696e Fixups for #3005
- ElEscapeDetector is utility class now
- Improved description and example of new rule
2021-01-21 15:01:58 +01:00
Andreas Dangel
f7909ae78a Merge branch 'master' into pr-2963-update 2021-01-21 11:43:01 +01:00
Jeff Bartolotta
15dd8783c7
Convert Pattern to a static final member 2021-01-19 10:28:08 -08:00