Skip to content

[apex] Fix #5082: Allow "Schema." in "EagerlyLoadedDescribeSObjectResult" - #7131

Merged
adangel merged 4 commits into
pmd:mainfrom
TrangOul:main
Oct 26, 2026
Merged

adangel merged 4 commits into
pmd:mainfrom
TrangOul:main

Conversation

@TrangOul

@TrangOul TrangOul commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Describe the PR

The existing rule EagerlyLoadedDescribeSObjectResult demands to use SObjectDescribeOptions param in SObjectType.getDescribe(options) or Schema.describeSObjects(SObjectTypes, options). In other words, it does not allow to use these functions without specifying SObjectDescribeOptions.

However, the rule requires to use SObjectDescribeOptions without the Schema. prefix. Both variants should be allowed.

Related issues

Ready?

@adangel adangel changed the title [apex] Allow Schema. in EagerlyLoadedDescribeSObjectResult [apex] Fix #5082: Allow "Schema." in "EagerlyLoadedDescribeSObjectResult" Oct 23, 2026
@pmd-actions-helper

pmd-actions-helper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
There are 0 changed duplications, 0 new duplications and 0 removed duplications.
There are 0 changed CPD errors, 0 new CPD errors and 0 removed CPD errors.

Regression Tester Report

(comment created at 2026-10-26 14:44:11+00:00 for 702bded)

@adangel adangel added this to the 7.29.0 milestone Oct 26, 2026

@adangel adangel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@adangel
adangel merged commit f4e059d into pmd:main Oct 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[apex] EagerlyLoadedDescribeSObjectResult: False positive with fully qualified SObjectDescribeOptions/FieldDescribeOptions

3 participants