[Informational] Coding format

Recently found out that Autolab requires a specific coding format for any merge request to their repo, so for the future, we should do our work with their coding style encase we want to do an upstream contribution.

  • two spaces, no tabs
  • no trailing whitespace, blank lines should have no spaces (you may want to consider getting a plugin for your text editor that shows you this information)
  • use spaces around operators, after commas, colons, semicolons, around { and before }
  • no space after (, [ or before ], )
  • use Ruby 1.9 hash syntax: prefer { a: 1 } over { :a => 1 }
  • prefer class << self; def method; end over def self.method for class methods
  • prefer { ... } over do ... end for single-line blocks, avoid using { ... } for multi-line blocks https://github.com/autolab/Autolab/blob/master/CONTRIBUTING.md