PMD Exception while using insert "as user" #4734
-
To Upload our app in app exchange we are doing a security review through the salesforce cli scanner. after the execution of the scanner we got the results in csv format there were a couple of PMD errors and exceptions. The PMD error was that when performing any DML operation we were supposed to do it as insert as user or update as user. On doing this the PMD error was rectified but the PMD exception was obtained in the result csv file. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This new Apex syntax is only supported with the latest PMD version 7.0.0-rc4 (see https://docs.pmd-code.org/latest/pmd_release_notes.html#apex-jorje-updated or issue #3973) Please make sure, that salesforce cli scanner uses the latest PMD version. |
Beta Was this translation helpful? Give feedback.
This new Apex syntax is only supported with the latest PMD version 7.0.0-rc4 (see https://docs.pmd-code.org/latest/pmd_release_notes.html#apex-jorje-updated or issue #3973)
Please make sure, that salesforce cli scanner uses the latest PMD version.