Atul Gupta
08/08/2023, 7:19 PMSpacingAroundCurlyRule
but this rule also handles the violations like below
val foo = if(true){0}else{1}
i.e., handling of spaces around if
. Is there any way to only disable the braces style rule and keep the spacing around if
and else
rule intact?Atul Gupta
08/08/2023, 7:20 PMif (true)
{
println("a")
}
else
{
println("b")
}
but below code should be non-compliant
if(true) // notice missing space here
{
println("a")
}
else
{
println("b")
}
Paul Dingemans
08/08/2023, 7:33 PMAtul Gupta
08/08/2023, 8:03 PMwakingrufus
08/10/2023, 5:21 AMAtul Gupta
08/10/2023, 7:37 AMSpacingAroundCurly
disables both(we want to disable only one)Paul Dingemans
08/10/2023, 1:25 PMwakingrufus
08/10/2023, 1:54 PM