[BUG] DML Inside of Apex Properties Not Evaluated for User_Mode AccessLevel. #1716
Labels
WaitingForFixFromPMD
Waiting for PMD to fix an issue so that we can incorporate the fix into Salesforce Code Analyzer
Have you tried to resolve this issue yourself first?
Yes
Bug Description
SELECT queries / DML inside of Apex properties missing AccessLevel.USER_MODE are not flagged for ApexCRUDViolation.
Output / Logs
No response
Steps To Reproduce
sf scanner run --format csv --outfile CodeAnalyzerGeneral.csv --target ./ --category Security
Expected Behavior
Expected scanner to identify and recommend AccessLevel USER_MODE within any DML in properties.
Operating System
MacOS Sequoia 15.1
Salesforce CLI Version
2.71.6-df87f59.
Code Analyzer Plugin (@salesforce/sfdx-scanner) Version
4.7.0
Additional Context (Screenshots, Files, etc)
No response
Workaround
Search all files for the pattern
get{
and manually review all DML for missing AccessLevel.Urgency
Low
The text was updated successfully, but these errors were encountered: