1413 Commits

Author SHA1 Message Date
Andreas Dangel
ac21dc95b1 Merge branch 'pr-2407'
[core] Deprecate Jaxen and XPath internal API #2407
2020-04-13 12:17:58 +02:00
Andreas Dangel
5c31d40ec2 [core] XPathRule: use == for enum comparison 2020-04-13 12:16:55 +02:00
Andreas Dangel
85924b5ad1 Merge branch 'pr-2388'
[lang-test] Use tree dumps for regression tests #2388
2020-04-11 15:09:42 +02:00
Andreas Dangel
0710877d05 [core] Deprecate AntlrToken#getType() in favor of #getKind()
Refs #2371
2020-04-10 18:50:58 +02:00
Clément Fournier
60d443963c Call default ctor
Defines properties
2020-04-09 15:28:20 +02:00
Clément Fournier
60087590e6 Remove changes to XPathHandler 2020-04-08 22:07:26 +02:00
Clément Fournier
1de1d1c66d Update some usages early 2020-04-08 22:00:36 +02:00
Clément Fournier
5067c79eb2 Cleanup a test 2020-04-08 21:38:10 +02:00
Clément Fournier
8284fc8e81 Deprecate two other things 2020-04-08 21:35:34 +02:00
Clément Fournier
bcf90ceb8a Externalize creator for XPath rule 2020-04-08 21:35:34 +02:00
Clément Fournier
fc304bf70c Add XPath version maker 2020-04-08 21:35:34 +02:00
Andreas Dangel
69ed0464a7 Merge branch 'pr-2385'
[java] Make yield statements more conditional #2385

Fixes #2319
2020-04-04 18:20:49 +02:00
Andreas Dangel
5ed8570703 Add new rule: apex/bestpractices.xml/UnusedLocalVariable 2020-04-04 18:09:44 +02:00
Andreas Dangel
2f33951f60 Add new rules ruleset for release 6.23.0 2020-04-04 17:49:09 +02:00
Andreas Dangel
b84e4dba88 Merge branch 'pr-2372'
[core] Deprecations for token managers #2372
2020-04-03 15:19:52 +02:00
Clément Fournier
e89c54fcf9 Cleanup 2020-03-28 18:01:32 +01:00
Clément Fournier
09ddc628cd Fix reference files 2020-03-28 17:46:33 +01:00
Clément Fournier
c83790fab5 Recycle tree printer from the designer 2020-03-28 17:46:33 +01:00
Clément Fournier
b01d4dc0d7 Test 2020-03-28 11:36:42 +01:00
Andreas Dangel
263c6e0d09 [core] Apply PR review suggestions, refs #2382 2020-03-27 17:46:07 +01:00
Andreas Dangel
8ffe160f12 [core] saxon rulechain: consider boolean expr 2020-03-27 13:35:51 +01:00
Andreas Dangel
a0e1e40bcb [core] saxon rulechain: don't use rule chain for other path expressions 2020-03-27 12:58:38 +01:00
Clément Fournier
30886544c5 Deprecations to clean up CPD 2020-03-20 18:00:16 +01:00
Clément Fournier
3269b48add Merge branch 'saxon-rulechain' 2020-03-20 14:47:31 +01:00
Andreas Dangel
c0b70bdbc7 [core] Rename DesignerBindings.AdditionalInfo::getSortKey 2020-03-20 12:14:34 +01:00
Clément Fournier
a899a25350 Fix expr normalization when ids are negative 2020-03-19 19:29:13 +01:00
Clément Fournier
514a524e6f Checkstyle 2020-03-19 19:22:35 +01:00
Clément Fournier
20a3c39b4d Make SplitUnions package private 2020-03-19 19:11:30 +01:00
Clément Fournier
45d4fc5f56 Make documentSorter singleton 2020-03-19 19:08:19 +01:00
Andreas Dangel
e2229b2d84 [core] Saxon XPath 2.0 and rule chain with visitors
This is an enhanced implementation of rule chain
support for XPath 2.0 expressions. It uses a own
visitor to analyze and modify the original
saxon xpath expressions.
2020-03-19 11:28:26 +01:00
Clément Fournier
8fb9d2e74d Implement for java 2020-03-17 19:57:22 +01:00
Clément Fournier
87ba035aa6 Add bindings for the designer treeview 2020-03-17 19:56:25 +01:00
Andreas Dangel
0b88caacea [core] Add more cases for Saxon rule chain 2020-03-13 20:48:35 +01:00
Andreas Dangel
5fb6df7daa [core] Add support for rule chain execution for XPath 2.0
Very similar approach to what has been implemented for Jaxen.
The existing rules still work as before.

Refs #1687
2020-03-13 15:29:20 +01:00
Andreas Dangel
4c020bfbf7 [maven-release-plugin] prepare for next development iteration 2020-03-12 15:15:18 +01:00
Andreas Dangel
eb93aaeca7 [maven-release-plugin] prepare release pmd_releases/6.22.0 2020-03-12 15:15:09 +01:00
Andreas Dangel
76e1ff5da3 Merge branch 'pr-2336'
[core] Call SymbolFacade without classloader by default
2020-03-12 10:28:19 +01:00
Andreas Dangel
0bfe70092a Merge branch 'pr-2338'
[cs] CPD: fixes in filtering of using directives
2020-03-07 09:13:46 +01:00
Maikel Steneker
d8e04ecc11 [cs] CPD: Fix for issue where statements following a using directive were ignored. 2020-03-06 12:33:59 +01:00
Andreas Dangel
4468db2428 [core] Call SymbolFacade without classloader by default
This allows languages, that don't need a classloader while creating
symbol table to just override the one method.
In the test, we call always the overloaded method with class loader
with made the symbol table processing not being run for tests
in plsql.

Fixes #2325
2020-03-06 10:59:02 +01:00
Andreas Dangel
94e28557db Merge branch 'pr-2317'
[apex] New Rule - Test Methods Must Be In Test Classes
2020-03-02 20:18:25 +01:00
Andreas Dangel
b50f4f48d8 [doc] Update release notes, fixes #639, refs #2317 2020-03-02 20:17:33 +01:00
Clément Fournier
e880c72ed2 Merge branch 'java14' 2020-03-02 19:06:03 +01:00
Andreas Dangel
90f286a4a1 Merge branch 'pr-2280'
[cs] CPD: Replace C# tokenizer by an Antlr-based one
2020-02-29 11:36:14 +01:00
Andreas Dangel
3a283559b4 Merge remote-tracking branch 'oowekyala/jdk14-pattern-matching' into jdk14 2020-02-27 15:03:24 +01:00
Maikel Steneker
4bd5a159e5 Rewrite to avoid Guava dependency. 2020-02-27 11:36:28 +01:00
Andreas Dangel
8b08e5449c Merge branch 'pr-2297'
[apex] Cognitive complexity metrics
2020-02-22 12:07:57 +01:00
Andreas Dangel
ddd338dc78 [doc] Update release notes, refs #2297, fixes #2162 2020-02-22 12:07:43 +01:00
Andreas Dangel
59e4be3648 Update gitignore
files generated by eclipse m2e plugin and pmd plugin
2020-02-20 11:29:10 +01:00
Andreas Dangel
4ce85c4656 [java] Fix deprecated usage of ArgumentCount/ParameterCount in rules 2020-02-16 14:41:37 +01:00