Andreas Dangel
4044abca91
[apex] AvoidNonRestrictiveQueries: Support @isTest
2024-07-12 09:36:45 +02:00
Andreas Dangel
99f8bf826b
[apex] AvoidNonRestrictiveQueries: ignore sub-queries
2024-07-12 09:36:45 +02:00
Andreas Dangel
41ca259503
[apex] AvoidNonRestrictiveQueries - handle sub-queries separately
2024-07-12 09:36:44 +02:00
Andreas Dangel
abdb57535a
[apex] New Rule: AvoidNonRestrictiveQueries
...
Fixes #635
Refs old PR #663
Co-authored-by: Jan Aertgeerts <2192516+JAertgeerts@users.noreply.github.com>
2024-07-12 09:36:44 +02:00
Andreas Dangel
dfdb63ba5b
[apex] Consider VariableDeclarationGroup in ApexTreeBuilder
...
- Throw parse exception, when a node is not handled
- Use ApexTreeDumpTest for SwitchStatements.cls
Fixes #5094
2024-07-04 12:36:05 +02:00
Andreas Dangel
d0928cc185
[apex] ApexUnitTestShouldNotUseSeeAllDataTrue: case-insensitive check
...
The annotation parameter name "seeAllData" is now compared
case-insensitive.
Fixes #5095
2024-07-04 11:48:11 +02:00
Justin Stroud
a395bd78c8
Small fix, removed duplicate unit test (accodentally created by me.)
2024-06-28 17:51:11 -07:00
Justin Stroud
33dde29264
Per @adangel, added a couple of unit tests that validate inner class naming logic. Uncovered some bugs, fixed those bugs.
2024-06-28 17:47:49 -07:00
Andreas Dangel
d952a10790
[release] Prepare next development version [skip ci]
2024-06-28 11:27:41 +02:00
Andreas Dangel
c5dbc29bea
[release] prepare release pmd_releases/7.3.0
2024-06-28 11:00:04 +02:00
Andreas Dangel
cd41d70546
[apex] UnusedLocalVariable - support concat strings for binding vars ( #5037 )
...
Merge pull request #5037 from adangel:issue-5000-apex-unused-local-variable
2024-06-27 11:51:57 +02:00
Andreas Dangel
6517dff840
[apex] Mention apex-parser issue
...
refs apex-dev-tools/apex-parser#44
2024-06-27 11:48:26 +02:00
Andreas Dangel
0691b5a7ba
Bump summit-ast to 2.3.0
2024-06-24 21:22:11 +02:00
Andreas Dangel
9430a27961
Merge branch 'master' into apex-4922-typeof
2024-06-24 21:18:46 +02:00
Andreas Dangel
9d803282d9
[apex] Use case-insensitive lexer for CPD
...
This makes it consistent with how the ApexParser
reads the files. And the case-sensitive ANTLR
rules (e.g. for string literals) work that
way.
Fixes #5053
2024-06-07 19:24:26 +02:00
Andreas Dangel
6595be09ac
[doc] Update release notes ( #4922 , #5055 )
2024-06-06 16:28:45 +02:00
Andreas Dangel
581b6db3d2
[apex] Use new io.github.apex-dev-tools:apex-ls for apexlink
2024-06-06 15:49:26 +02:00
Andreas Dangel
4f1be343e3
[apex] SoslExpression - expose query
2024-06-06 15:49:25 +02:00
Andreas Dangel
8b96c0fe7e
[apex] Update summit-ast and apex-parser
...
Fixes #4922
2024-06-06 15:49:20 +02:00
Justin M. Stroud
0f4a59c07d
Added inner interfaces.
2024-06-03 03:17:13 -07:00
Justin M. Stroud
af38000d8a
Moved inner class check to top.
2024-06-03 03:11:52 -07:00
Justin M. Stroud
9844cfae22
Moved inner class check to top.
2024-06-03 03:10:07 -07:00
Justin M. Stroud
ac5d1135aa
Added inner classes to ClassNamingConventionsRule, and added property to support name checking for inner classes.
2024-06-03 02:54:18 -07:00
Andreas Dangel
28c6c8e121
[release] Prepare next development version [skip ci]
2024-05-31 13:21:14 +02:00
Andreas Dangel
38bc997d4e
[release] prepare release pmd_releases/7.2.0
2024-05-31 12:57:36 +02:00
Andreas Dangel
4d07d80c93
[apex] UnusedLocalVariable - support concat strings for binding vars
...
Fixes #5000
2024-05-23 16:13:45 +02:00
Juan Martín Sotuyo Dodero
66606648a2
Merge branch 'master' into xpath-seq-attributes
2024-04-28 17:39:08 +02:00
Juan Martín Sotuyo Dodero
28c5cd7114
Remove @Names
attribute from ASTReferenceExpression
2024-04-28 12:18:36 -03:00
Andreas Dangel
339e1d4f43
[release] Prepare next development version [skip ci]
2024-04-26 09:04:20 +02:00
Andreas Dangel
592e80d4a9
[release] prepare release pmd_releases/7.1.0
2024-04-26 08:35:11 +02:00
Clément Fournier
75e284075b
Fix violations of UnnecessaryVarargsArrayCreation
2024-04-21 13:31:27 +02:00
Juan Martín Sotuyo Dodero
ca7e15c114
update output to sequences
2024-04-19 01:55:54 -03:00
Juan Martín Sotuyo Dodero
02e7a713fa
Update Apex tree dumps with the new attributes
2024-04-19 01:17:28 -03:00
Andreas Dangel
3203a80f27
[apex] Add ASTAnnotation#getRawName
...
Fixes #4418
2024-04-06 11:16:06 +02:00
Juan Martín Sotuyo Dodero
0f45215817
Merge pull request #4926 from adangel/japicmp
...
[core] Add japicmp
2024-04-04 15:51:34 -03:00
Andreas Dangel
a7a9b916e3
Merge branch 'master' into pr-4871
2024-04-04 16:48:42 +02:00
Andreas Dangel
2c2a384c7d
Merge branch 'master' into japicmp
2024-04-04 16:43:29 +02:00
Juan Martín Sotuyo Dodero
eaec0dad28
Merge pull request #4923 from adangel/fix-checkstyle-config
...
Fix checkstyle config and checkstyle issues
2024-04-04 10:27:23 -03:00
Andreas Dangel
4fe50978b6
Add japicmp - breaks build based on semantic versioning
2024-04-04 15:20:15 +02:00
Andreas Dangel
280b1a1ee3
Bump next version to be 7.1.0-SNAPSHOT
2024-04-04 10:49:18 +02:00
Andreas Dangel
d88a3c50fe
Fix checkstyle config and checkstyle issues
2024-04-04 10:46:05 +02:00
Andreas Dangel
7332d61515
[release] prepare for next development iteration
2024-03-22 09:28:44 +01:00
Andreas Dangel
0541ab8591
Revert "[release] prepare for next development iteration"
...
This reverts commit 27620724dcf48160f9ea91b9a02a6186400a38cd.
2024-03-22 09:01:47 +01:00
Andreas Dangel
27620724dc
[release] prepare for next development iteration
2024-03-22 08:46:33 +01:00
Andreas Dangel
2e91f316f4
Revert "[release] prepare for next development iteration"
...
This reverts commit 0c7c0386363e41cf3d639a46352e2e875be0710a.
2024-03-22 08:44:25 +01:00
Andreas Dangel
0c7c038636
[release] prepare for next development iteration
2024-03-22 08:36:51 +01:00
Andreas Dangel
ccb123f1ff
[release] prepare release pmd_releases/7.0.0
2024-03-22 08:36:44 +01:00
Clément Fournier
03c98413a4
Treat formal comments as normal comments for the purposes of @ContainsComment
...
Fix #3953
2024-03-21 19:54:05 +01:00
Andreas Dangel
1b02df40a0
Merge branch 'master' into issue-4828-apex-null-coalescing
2024-03-15 18:35:59 +01:00
Andreas Dangel
88d63a8ca4
[apex] UnusedLocalVariable - add test cases for #4556
2024-03-14 20:16:02 +01:00
Andreas Dangel
ffb92231fe
Merge branch 'master' into pr-4562
2024-03-14 20:13:52 +01:00
Andreas Dangel
576c83fa83
[apex] Bump apex-link from 2.3.5 to 2.3.7
2024-03-14 18:06:14 +01:00
Andreas Dangel
0fc4dceda7
[apex] Bump summit-ast from 2.1.1 to 2.2.0
2024-03-14 18:04:46 +01:00
Andreas Dangel
89f6ca6bd7
Merge branch 'master' into issue-4828-apex-null-coalescing
2024-03-14 18:02:33 +01:00
Andreas Dangel
ec0bfd1c4c
Fix more javadoc errors
...
These worked with Java 21, but not with Java 11.
2024-03-08 08:53:02 +01:00
Andreas Dangel
92fd84fc38
Remove duplicated dependency of guava
2024-03-07 11:47:06 +01:00
Andreas Dangel
dffc44ecde
Merge branch 'master' into cleanup-todos
2024-03-05 18:53:49 +01:00
Andreas Dangel
b64489a515
Merge branch 'master' into issue-4830-consolidate-packages
2024-03-04 19:21:16 +01:00
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