Skip to content
Rafael Reggiani Manzo edited this page Mar 9, 2014 · 2 revisions

In this page we look to present some standards that we've adopted through the development and that we expect to see on contributions.

If you find yourself in a situation not covered by this page, have a look at http://guidelines.plataformatec.com.br/ and open a issue with your question. You can as well base on similar code snippets from the project.

If you find bunchs of the code that are out of the standards defined here, feel free to fix it or open an issue letting us know about it. Thank you!

Code style

  • The indentation should always use two blank spaces.

Ruby

  • Decision structures should use && and || instead of and and or;
  • When calling a method or function, always use it's parenthesis;
  • Don't leave blank lines when you're finishing a block between the code and the end statement.

RSpec

Clone this wiki locally