Skip to content

Code Standards

A practical set of standards for Salesforce code, with the static analysis rules that enforce them. Testing and enforcement expectations live within each page rather than as separate topics.

  • Apex: naming, structure, bulkification, SOQL and DML discipline, error handling, and tests
  • HTML and Visualforce: Visualforce pages, component markup, accessibility, and output escaping
  • JavaScript: Lightning Web Component conventions, linting, and tests