-
Notifications
You must be signed in to change notification settings - Fork 15
Standards
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!
- The indentation should always use two blank spaces.
- Decision structures should use
&&
and||
instead ofand
andor
; - 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.
- Use the
let
construction (https://www.relishapp.com/rspec/rspec-core/docs/helper-methods/let-and-let) instead of creating global variables.