Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Fields prefixed with underscores, e.g. _messageCount
  • Spaces after keywords but no spaces either before or after parentheses in method calls, e.g.
    Code Block
    if (x == 5)
    
    rather than
    Code Block
    if(x==5)
    
    but
    Code Block
    foo.bar(4, 5)
    
    rather than
    Code Block
    foo.bar( 4, 5 )
    

Details

Introduction

This document describes two types of coding standard:

1. Mandatory standards must be followed at all times.
2. Recommended standards should in general be followed but in particular cases may be omitted where the programmer feels that there is a good reason to do so.

Code that does not adhere to mandatory standards will not pass the automated checks (or a code review if the guideline is not stylistic).