1984 Commits

Author SHA1 Message Date
Andreas Dangel
cc3da7b21e Fix kotlin compiler warnings 2024-03-01 16:55:01 +01:00
Andreas Dangel
55a0988e19 [apex] Remove AntlrVersionCheckSuppression
This is not needed anymore with the new Summit AST
which uses the updated apex-parser

Fixes #4845
2024-03-01 14:21:43 +01:00
Andreas Dangel
51be813cd7 [apex] Support Apex 60, Null Coalescing operator
Fixes #4828
2024-03-01 13:36:42 +01:00
Andreas Dangel
a96b6016af [apex] Verify ApexDoc with annotated classes
Fixes #4774
2024-03-01 12:47:15 +01:00
Andreas Dangel
ab0d740d81 Cleanup some TODOs 2024-03-01 12:07:48 +01:00
Andreas Dangel
53323de951 [apex] MethodNamingConventions: Remove prop skipTestMethodUnderscores
This property was deprecated since PMD 6.15.0.
2024-02-26 19:25:56 +01:00
Andreas Dangel
414c119be1 [apex] Move metrics tests into internal package 2024-02-23 17:46:29 +01:00
Andreas Dangel
845154716c [test] Consolidate packages, move PmdRuleTst, SimpleAggregatorTst 2024-02-23 17:46:29 +01:00
Andreas Dangel
3a7460de29 [lang-test] Move classes into n.s.p.lang.test 2024-02-23 17:46:23 +01:00
Andreas Dangel
7069e6146c Simplify kotlin compiler configuration 2024-02-23 10:50:58 +01:00
Andreas Dangel
e6c9d71f7b [apex] Fix compile errors after merge 2024-02-22 18:45:50 +01:00
Andreas Dangel
3a7b570df0 Merge branch 'master' into experimental-apex-parser 2024-02-22 18:38:17 +01:00
Andreas Dangel
9e71e36ab1 Merge pull request #4811 from adangel:issue-4349-cleanup-deprecations
Cleanup remaining experimental and deprecated API #4811
2024-02-22 17:08:51 +01:00
Andreas Dangel
59537fb15c Merge branch 'master' into experimental-apex-parser 2024-02-13 20:12:39 +01:00
Andreas Dangel
a4280011a3 [apex] Remove now unneeded dependency to antlr 3 2024-02-13 19:09:36 +01:00
Andreas Dangel
f12beff7c9 [apex] Decimal LiteralExpression - add TODO
Refs https://github.com/google/summit-ast/pull/47
2024-02-13 18:46:24 +01:00
Andreas Dangel
204232c238 [apex] Remove ASTBridgeMethodCreator
Update release notes/migration guide
2024-02-13 18:43:09 +01:00
Andreas Dangel
f57a072e5c [apex] Normalize bound vars in SOQL 2024-02-13 18:42:24 +01:00
Andreas Dangel
526d9684c5 [apex] Remove namespace implementations
Fixes TODO(b/243905954)
2024-02-12 20:17:53 +01:00
Andreas Dangel
e811b9ceb3 [apex] DefiningType for ASTApexFile 2024-02-12 20:17:53 +01:00
Andreas Dangel
0a557dfcf8 [apex] AbstractApexNode - calculateTextRegion for many nodes as union 2024-02-12 20:17:53 +01:00
Andreas Dangel
e8e19a294f [apex] Fix RealLoc of ASTModifierNode and ASTField 2024-02-12 20:17:52 +01:00
Andreas Dangel
95d0cf4733 [apex] ApexXPathRuleTest - remove old test
This was testing a deprecated XPath attribute,
but that attribute was already removed.
2024-02-12 20:17:52 +01:00
Andreas Dangel
cf67ebf4a5 [apex] ApexLexerTest - reenable and finish
Fixes TODO(b/239648780)
2024-02-12 20:17:41 +01:00
Andreas Dangel
50514b3736 [apex] ApexParser - init logging 2024-02-12 17:37:55 +01:00
Andreas Dangel
f5979b5bfb [apex] ASTSoqlExpression - provide simple canonical query 2024-02-11 16:35:12 +01:00
Andreas Dangel
19907a74d9 [apex] Finish ASTReferenceExpression
- removed method getContext() - always returned null
  Fixes TODO(b/243906211)
- Verify that getReferenceType() returns the correct values
  Fixes TODO(b/239648780)
2024-02-10 21:01:52 +01:00
Andreas Dangel
1b4acab7c4 Merge branch 'master' into issue-4349-cleanup-deprecations 2024-02-10 12:36:58 +01:00
Andreas Dangel
bc5be45566 Merge branch 'master' into issue-4348-internal-api 2024-02-09 21:31:05 +01:00
Andreas Dangel
5931461ca9 Merge pull request #4804 from adangel:issue-4309-xpath-cleanups
[core] XPath cleanups #4804
2024-02-09 16:23:58 +01:00
Andreas Dangel
6a328d6cd0 Merge pull request #4803 from adangel:issue-3903-reporting-package
[core] Consolidate n.s.pmd.reporting package #4803
2024-02-09 15:32:55 +01:00
Andreas Dangel
2a3128fb86 Merge pull request #4799 from adangel:issue-3917-rule-package
[core] Consolidate n.s.pmd.lang.rule package #4799
2024-02-09 14:39:03 +01:00
Andreas Dangel
ef165acebe [apex] ApexNode - fix javadoc 2024-02-09 12:16:52 +01:00
Andreas Dangel
e0eb36b195 [apex] FieldDeclarationsShouldBeAtStartRule - remove STATIC_INITIALIZER_METHOD_NAME 2024-02-09 12:16:38 +01:00
Andreas Dangel
f6bf245914 [apex] AbstractApexNode - hide literalToString and caseNormalizedTypeIfPrimitive
These are helper methods to be used only inside the ast package.
2024-02-09 12:10:17 +01:00
Andreas Dangel
31a79ef671 [apex] Remove TestQueryValidators - was only needed for Jorje 2024-02-09 12:03:16 +01:00
Andreas Dangel
b9f2ca7432 [apex] ASTMethod - remove #isSynthetic
- keep CONSTRUCTOR_ID and STATIC_INIT_ID private
- update migration documentation
2024-02-09 12:02:35 +01:00
Andreas Dangel
bf008596bf [apex] ASTLiteralExpression - add workaround for decimal 2024-02-09 11:11:28 +01:00
Andreas Dangel
5964add71f [apex] ASTFieldDeclarationStatements - clarify #getTypeArguments
Also simplify ApexCRUDViolationRule

Fixes TODO(b/239648780)
2024-02-09 10:49:00 +01:00
Andreas Dangel
6c4f3efbc7 [apex] ASTBlockStatement - verify curlyBrace 2024-02-09 09:50:24 +01:00
Andreas Dangel
17848c484d Merge branch 'master' into experimental-apex-parser 2024-02-09 09:29:16 +01:00
Andreas Dangel
0d40878b0a Promote experimental APIs as stable
- HTML support and Kotlin support no more experimental
- The only left over experimental APIs are java preview features
2024-02-09 08:46:48 +01:00
Andreas Dangel
5599a8fd65 Merge branch 'master' into issue-4349-cleanup-deprecations 2024-02-08 18:23:41 +01:00
Andreas Dangel
3ec38df9b0 [core] Remove deprecated XPathVersions 2024-02-06 21:33:08 +01:00
Andreas Dangel
fa97cff7ff Merge pull request #4797 from adangel:lexexception-cpdlexer
[core] Rename TokenMgrError to LexException, Tokenizer to CpdLexer #4797
2024-02-02 19:59:41 +01:00
Andreas Dangel
a78e17b7a6 Merge pull request #4796 from adangel:remove-deprecated-and-release-rulesets
Remove deprecated and release rulesets #4796
2024-02-02 19:57:04 +01:00
Andreas Dangel
a76ec3410c Merge pull request #4795 from adangel:remove-ruleset-factory-compatibility
[core] Remove ruleset compatibility filter (RuleSetFactoryCompatibility) and CLI option --no-ruleset-compatibility #4795
2024-02-02 19:53:51 +01:00
Andreas Dangel
c8686a0dff Merge pull request #4792 from adangel:undeprecate-node-getImage
[core] Undeprecate Node::getImage() in PMD 7 #4792
2024-02-02 19:49:26 +01:00
Andreas Dangel
8111d450c2 [core] Remove deprecated classes/methods
Node#getParentsOfType
Node#findChildrenOfType
Node#findDescendantsOfType
Node#getFirstChildOfType
Node#getFirstDescendantOfType
Node#hasDescendantOfType
2024-02-02 15:57:34 +01:00
Andreas Dangel
7494260ffc [apex] Remove deprecated classes/methods 2024-02-02 12:34:50 +01:00