Skip to content

Instantly share code, notes, and snippets.

@devsinc
devsinc / Rubocopconfig.md
Created April 3, 2021 07:04 — forked from ziaulrehman40/Rubocopconfig.md
Rubocop config

Add following to Gemfile

group :development, :test do
  gem 'rubocop'
  gem 'rubocop-performance'
  gem 'rubocop-rails'
  gem 'rubocop-minitest' # or gem 'rubocop-rspec' depending on your test suite
end

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.