This page provides a set of minimum guidelines for code formatting and coding style that you need to follow in order to get a positive review on a patch when creating Robocop tests. It's worth noting that these guidelines are similar or the same the standard Firefox coding style, so if you're familiar with those, you're in great shape.

// This is a one line comment
/* This is a multiple line comment
   The text should be aligned at the first letter not the comment start */
first_lvl_of_indentation {
    second_lvl_of_indentation {
        3rd_lvl_of_indentation {
    We are now at the second level

We are back at the 1st level of indentation
method_name(arg1, arg2, arg3) {

Note that there's no space between the method name and the opening parenthesis for the parameter list, there are spaces after each "," in the parameter list, and there's and a space closing parenthesis at the end of the list and the "{".

class {
    variables defined here

    method1() {

    method2() {

    method3() {
class example {
    int globalVariable;
    method(int mGlobalVariable) {
    int globalVariable = mGlobalVariable;