Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 620 Bytes

README.markdown

File metadata and controls

31 lines (22 loc) · 620 Bytes

Rubocop Config

This repo includes Rubocop (https://rubocop.org/) config shared across all Burt's Ruby projects.

Usage

Install the Rubocop gems (which one depends on the type of project).

group :development do
  gem 'rubocop'
  gem 'rubocop-rails'
  gem 'rubocop-rspec'
end

Add the Rubocop config in .rubocop.yml:

inherit_from:
  - https://raw.githubusercontent.com/burtcorp/rubocop-config/master/rubocop.yml
  - https://raw.githubusercontent.com/burtcorp/rubocop-config/master/rubocop-rspec.yml

AllCops:
  TargetRubyVersion: 3.1

Style/TrailingBodyOnModule:
  Enabled: false

# ...