RL00100 - Ensures all brackets are properly placed

Opening and closing brackets must be placed on their own lines.

Accepted

if ()
{
    some code
}

Rejected

if () {
}

if ()
{  // some comment
   some code
}

Exceptions

  • initialization of data within code

char [] someChars = { 'a', 'b', 'c', 'd' };

  • one line property set/get methods

public int MyProperty
{
   get { return m_myProperty }
   set { m_myProperty = value; }
}