We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Affects PMD Version: 7.0.0
Rule: https://docs.pmd-code.org/latest/pmd_rules_apex_security.html#ApexCRUDViolationRule
Description: Code below only validates list variables declared with List<[..]> , but Apex also allows array syntax for their List class.
List<[..]>
Code Sample demonstrating the issue:
public void foo() { Contact[] contacts = new List<Contact>(); contacts.add(new Contact()); if (Contact.sObjectType.getDescribe(SObjectDescribeOptions.DEFERRED).isCreateable()) { insert contacts; } }
Expected outcome:
PMD reports a violation at line 7, but that's wrong. That's a false positive.
Running PMD through: Apex PMD (VSC)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Affects PMD Version:
7.0.0
Rule:
https://docs.pmd-code.org/latest/pmd_rules_apex_security.html#ApexCRUDViolationRule
Description: Code below only validates list variables declared with
List<[..]>
, but Apex also allows array syntax for their List class.Code Sample demonstrating the issue:
Expected outcome:
PMD reports a violation at line 7, but that's wrong. That's a false positive.
Running PMD through: Apex PMD (VSC)
The text was updated successfully, but these errors were encountered: