forked from phoedos/pmd
Simple change in voilation check
This commit is contained in:
@ -666,7 +666,8 @@ public class ApexCRUDViolationRule extends AbstractApexRule {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (isImproperDMLCheck && !userMode && !systemMode) {
|
if (isImproperDMLCheck && !userMode && !systemMode) {
|
||||||
addViolationWithMessage(data, node, "This CRUD statement uses explicit system mode");
|
//addViolationWithMessage(data, node, "This CRUD statement uses explicit system mode");
|
||||||
|
addViolation(data, node);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user