Sha256: 5d155f795bc9455308a748c9240329e1f8d32702dab4c94fed798de98511805d
Contents?: true
Size: 807 Bytes
Versions: 3
Compression:
Stored size: 807 Bytes
Contents
# RuboCop GOV.UK This repository provides common RuboCop rules for use with GOV.UK Ruby projects to comply with our [style guides][guides]. ## Installation Add `rubocop-govuk` to your Gemfile and then run `bundle install`: ```ruby # Gemfile gem 'rubocop-govuk', require: false ``` Then inherit the default rules by adding the following in your project: ```yaml # .rubocop.yml inherit_gem: rubocop-govuk: - config/default.yml inherit_mode: merge: - Exclude ``` You can also configure additional rules for Rails and RSpec: ```yaml # .rubocop.yml inherit_gem: rubocop-govuk: ... - config/rails.yml ``` ```yaml # .rubocop.yml inherit_gem: rubocop-govuk: ... - config/rspec.yml ``` ## Testing Run `bundle exec rake`. [guides]: https://github.com/alphagov/styleguides
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubocop-govuk-4.1.0 | README.md |
rubocop-govuk-4.0.0 | README.md |
rubocop-govuk-4.0.0.pre.1 | README.md |