Style Guidelines - acm-uiuc/groot GitHub Wiki

Go (just use a linter basically):

//Function Signatures:
func foo(arg1: int, arg2: bool) { 

//if/else 
if x == y {
  return x
}
return y 

//No non bracketed blocks
//wrong:
if x == 1
  return true 
//correct:
if x == 1 {
  return true
}

JS (Use something like ESLint)

//Function Signatures:
function foo(arg1, arg2) { 

//if/else 
if x == y {
  return x;
}
return y; 

//No non bracketed blocks
//wrong:
if x == 1
  return true; 
//correct:
if x == 1 {
  return true;
}

Ruby: good indenting basically

Python: Follow pep8