Ruby

Code style

Idioms

Naming

Syntax

Data syntax

Standard library

Linting

For linting your Ruby code, we recommend the use of the rubocop gem, using this configuration as a starting point. For existing apps, feel free to change the configuration as you want to match the existing code style of the application if necessary.

  $ gem install rubocop
  $ rubocop

If you want to lint your stylesheets whenever your application is built by a build agent, add the rubocop to the test environment in your Gemfile and execute it together with your tests.