ApexSOQLInjection - lpohl-Reply/pmd-github-action GitHub Wiki
Rule: ApexSOQLInjection
Message
Avoid untrusted/unescaped variables in DML query
Description
Detects the usage of untrusted / unescaped variables in DML queries.
Priority
1 (was 3)
Example
public class Foo {
public void test1(String t1) {
Database.query('SELECT Id FROM Account' + t1);
}
}