Skip to main content

Clayton Rules - Naming conventions on Aura Controller Property

David Martin avatar
Written by David Martin
Updated this week

Rationale

Consistent naming conventions are crucial for code readability and maintainability. They make it significantly easier for developers to understand and navigate the codebase.


Scope

This rule specifically targets Aura Controller Properties.


Configurations

  • Pattern: Define a regular expression to validate your Aura controller properties' naming.

  • Hint: Provide a tangible example of a name that adheres to the convention. This hint will be displayed when a violation is flagged.

    • Warning: The hint isn't automatically validated against your pattern, so make sure it's accurate before adding it.


Exclusions

This rule will not apply to test classes.

Did this answer your question?