Data manipulation utility class

Detects any direct usage of DML methods in Apex Classes.

Gabriele Gallo Stampino avatar
Written by Gabriele Gallo Stampino
Updated over a week ago


Some teams may found it useful to create some central utility to proxy data access. This check can be used to detect instances where such utilities are not being used.


  • Apex Classes


  • List of methods for every operation (insert, upsert, update, delete, undelete) where the usage of DML methods is allowed


  • This rule will not fire on test classes

Did this answer your question?