README.md in rubocop-govuk-3.14.0 vs README.md in rubocop-govuk-3.15.0
- old
+ new
@@ -9,37 +9,41 @@
```ruby
# Gemfile
gem 'rubocop-govuk'
```
-Inherit rules from the gem by adding the following to your project's RuboCop config:
+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
```
-or if you also need Rails specific rules:
+You can also configure additional rules for Rails and RSpec:
```yaml
# .rubocop.yml
inherit_gem:
rubocop-govuk:
- - config/default.yml
+ ...
- config/rails.yml
+```
-inherit_mode:
- merge:
- - Exclude
+```yaml
+# .rubocop.yml
+inherit_gem:
+ rubocop-govuk:
+ ...
+ - config/rspec.yml
```
-## Usage
+## Testing
-Run RuboCop:
-
-```sh
-bundle exec rubocop
-```
+Run `bundle exec rake`.
[guides]: https://github.com/alphagov/styleguides