rubocop-skiftle
Skiftle's shared RuboCop configuration. Includes rubocop-canon cops with Skiftle defaults.
Presets
| Preset | Use for | Includes |
|---|---|---|
rubocop-gem.yml |
Ruby gems | Canon cops, Layout, Style, Metrics, Naming, Lint, RSpec |
rubocop-app.yml |
Rails apps | Everything in gem + Rails overrides + standard excludes |
Both presets inherit from rubocop-base.yml which contains all shared rules.
Installation
Add to your Gemfile:
gem 'rubocop-skiftle', require: falseFor a gem:
# .rubocop.yml
inherit_gem:
rubocop-skiftle: rubocop-gem.ymlFor a Rails app:
# .rubocop.yml
inherit_gem:
rubocop-skiftle: rubocop-app.ymlLicense
MIT