ascot diagnostics

S9048

Warning: Put {wanted} between } and {keyword}

Under {"closeBrace":{"newlineAfter":false}}, an Else, ElseIf or Catch on a line below the } it follows is reported. Under true, one on the brace’s line is reported, as in } Else {. Move the keyword onto the brace’s line or onto the line below it, as the message says.

IRIS compiles the example. Checked with the style {"closeBrace":{"newlineAfter":false}}.

Class Demo.ChainBreak
{

ClassMethod Sign(n As %Integer) As %Integer
{
    If n < 0 {
        Quit -1
    }
    Else { //! S9048
        Quit 1
    }
}

}

All diagnostics