Currently, you can configure the ifBody to be on the same line, but you can't make the value depend on whether there is a corresponding else for that if statement. I want to have the if body on the same line if there is no else block and on a different line if there is an else block (so I can then mandate that curly braces be
Examples
// This is fine.
if (foo) bar();
// I don't like this.
if (foo) bar();
else baz();
// hxformat + checkstyle currently does this (disgusting!)
if (foo) bar();
else
{
baz();
}
// I want this while still allowing case 1.
if (foo)
{
bar();
}
else
{
baz();
}
Currently, you can configure the
ifBodyto be on the same line, but you can't make the value depend on whether there is a correspondingelsefor thatifstatement. I want to have theifbody on the same line if there is noelseblock and on a different line if there is anelseblock (so I can then mandate that curly braces beExamples