You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@praful-gupta , can you reproduce this issue running the Code Analyzer directly against the file via the terminal? i.e., sf scanner run --engine pmd --target path/to/whatever/file?
Rule: apexcrudviolation
a link to the rule documentation:
https://docs.pmd-code.org/pmd-doc-6.55.0/pmd_rules_apex_security.html#apexcrudviolation
Even if the SOQL doesn't have any permission check on running the code analyzer for class there is no apexcrudviolation returned.
Code Sample demonstrating the issue:
Expected outcome:
PMD should report a violation at line 10, but doesn't. This is a false-negative.
Running PMD through: [CLI ] VS Code extension for Salesforce Code Analyzer
The text was updated successfully, but these errors were encountered: