in our code we sometimes have this
public class Demo{ public String value(){ if (something){ while(true){ ... } } } }
I'm currently trying to set up a checkstyle configuration to force developers to have a space before '{':
public class Demo { public String value() { if (something) { while(true) { ... } } } }
but I can't get it to work. Does anyone know the correct checkstyle configuration for this particular installation? I want to check this code as part of my gradle assembly
checkstyle
Reene groeschke
source share