Skip to main content
Direct access utility class

Detects any direct usage of SOQL in Apex classes.

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

Rationale

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.

Scope

  • Apex Classes

Configurations

  • List of methods where the usage of direct SOQL statements are allowed

Exclusions

  • This rule will not fire on test classes


โ€‹

Did this answer your question?