Skip to main content

Clayton Rules - Naming conventions on Apex triggers

David Martin avatar
Written by David Martin
Updated this week

Rationale

Naming conventions promote consistency in your app and make the code easier to read and understand.

Scope

  • Apex triggers

Configurations

  • Pattern. Use a regular expression to define the validation pattern for your trigger names.

  • Hint. Add a hint to be displayed when a detection is flagged, in order to give developers a tangible example of a name that suits naming convention. (Warning: the hint is not validated, make sure it matches your validation pattern before adding it).

See also

Did this answer your question?