Sha256: b5ab0c482d924a9978933b1f1cd381afefb9c690e36d1d149f0bbd501668a971
Contents?: true
Size: 1.42 KB
Versions: 6
Compression:
Stored size: 1.42 KB
Contents
# RuboCop Standard This repository enables all of [Shopify's recommended RuboCop configurations](https://github.com/Shopify/ruby-style-guide), plus some extra ones I've found useful for my projects, like: - [`rubocop-minitest`](https://github.com/rubocop/rubocop-minitest) - [`rubocop-performance`](https://github.com/rubocop/rubocop-performance) - [`rubocop-rails`](https://github.com/rubocop/rubocop-rails) - [`rubocop-rake`](https://github.com/rubocop/rubocop-rake) ## Installation ### Gemfile ``` ruby gem "rubocop-standard" ``` ### .rubocop.yml ``` yaml require: - rubocop-standard ``` ## How to configure In your .rubocop.yml file, just write: ```yaml inherit_gem: rubocop-standard: - config/default.yml ``` By default, `rubocop-performance` and `rubocop-rake` rules are enforced, because it's assumed that every Ruby project cares about these two sets. Why? Well, everyone should care about performance, and every project uses Rake (and Bundler) as de facto tools. This gem also has `rubocop-minitest` and `rubocop-rails` as dependencies, so you can simply add those in for whichever project needs them: ```yaml inherit_gem: rubocop-standard: - config/default.yml - config/minitest.yml - config/rails.yml ``` ## Other features This project also excludes directories that are ancillary to the core lib code: ```yaml AllCops: Exclude: - bin/**/* - node_modules/**/* - tmp/**/* - vendor/**/* ```
Version data entries
6 entries across 6 versions & 1 rubygems