Sha256: 53cb42db398d24fc5906f15dd2bc8fc39c334d1eb31a8acc43988025f2ec3d84

Contents?: true

Size: 791 Bytes

Versions: 5

Compression:

Stored size: 791 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'
```

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

5 entries across 5 versions & 1 rubygems

Version Path
rubocop-govuk-3.17.2 README.md
rubocop-govuk-3.17.1 README.md
rubocop-govuk-3.17.0 README.md
rubocop-govuk-3.16.0 README.md
rubocop-govuk-3.15.0 README.md