SA1500 Alternative

May 22, 2014 at 11:14 PM
Edited May 25, 2014 at 4:28 PM
This is a suggestion to allow a custom rule to enforce either having brackets on their own line OR the java style which is optimized for vertical height

example

current
myMethod
{
  if(..)
  {
      ...
  }
  else
  {
     ...
  }
}
alternative
myMethod {
  if(..) {
      ...
  } else {
     ...
  }
}