Apex Styleguide

This site is ment to be an example of our style and not ment to be the "end all be all" of Apex stylization. The best advice I can give is to be consistant and stick with a style that works best for you

Guide Usage

This guide is broken up sections based on the type of code being used. Where applicable Checkstyle references will be provided

Checkstyle Usage

  1. Download the most recent version of the checkstyle jar
  2. Generate a checkstyle.properties file
    basedir=/path/to/src
  3. Download the most recent apex_checks.xml file
  4. Run checkstyle against a single file java -jar checkstyle.jar -p checkstyle.properties -c apex_checks_combined.xml /path/to/src/classes/MyClass.cls