User Tools

Site Tools


code_formatting_standards

This is an old revision of the document!


Code Formatting Standards

FIXME This page is a work in progress and currently NOT official! FIXME

General Conventions

As a general rule, Evergreen contributions should follow these basic conventions.

  • Code
    • Indents should be 4 spaces
    • Lines should be kept at 80 characters or less if possible
    • Tokens should be separated by whitespace (i.e '$this = 1' not '$this=1')
    • Opening braces should be on the same line as the corresponding token
      if ($this) {
          that();
      }

      not

      if ($this)
      {
          that();
      }
code_formatting_standards.1257373982.txt.gz · Last modified: 2022/02/10 13:33 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.