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 |
rubocop-apiwork.yml |
Apps using apiwork | apiwork DSL names for the Canon cops |
Both presets inherit from rubocop-base.yml which contains all shared rules. rubocop-apiwork.yml is combined with a preset.
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.ymlFor a Rails app using apiwork:
# .rubocop.yml
inherit_gem:
rubocop-skiftle:
- rubocop-app.yml
- rubocop-apiwork.ymlLicense
MIT