GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — [apex] New rule EagerlyLoadedDescribeSObjectResult by jonathanwiesel · Pull Request #3538 · pmd/pmd Conversation
Contributor
Describe the PRNew rule to promote the usage of
Related issuesReady?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
adangel
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the PR! I've some suggestions for the rule documentation - could you please review/incorporate that in? While reading https://www.ca-peterson.com/apex/2020/01/21/apex-describe-calls-what-you-need-to-know.html?utm_source=pocket_mylist I was wondering, whether this rule should additionally find usages of the following kind: Schema.describeSObjects(new String[]{'User'})[0].isAccessible(); This seems to eagerly load the attributes as well.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
I would also like to point out that explicitly using the Yes you're right, I will add it along with the other things you mentioned, thanks a lot |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks good now!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
[apex] New rule EagerlyLoadedDescribeSObjectResult pmd#3538
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[apex] Promote usage of consistent getDescribe() info
There was an error while loading. Please reload this page.