Sha256: 9887eab2ad82f57cc4e31ee200d35515bddef10e432e20577bc03e0bdc00d7ee

Contents?: true

Size: 731 Bytes

Versions: 9

Compression:

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

Inherit rules from the gem by adding the following to your project's RuboCop config:

```yaml
# .rubocop.yml
inherit_gem:
  rubocop-govuk:
    - config/default.yml
```

or if you also need Rails specific rules:

```yaml
# .rubocop.yml
inherit_gem:
  rubocop-govuk:
    - config/default.yml
    - config/rails.yml

inherit_mode:
  merge:
    - Exclude
```

## Usage

Run RuboCop:

```sh
bundle exec rubocop
```

[guides]: https://github.com/alphagov/styleguides

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubocop-govuk-3.14.0 README.md
rubocop-govuk-3.13.0 README.md
rubocop-govuk-3.12.0 README.md
rubocop-govuk-3.11.0 README.md
rubocop-govuk-3.10.0 README.md
rubocop-govuk-3.9.0 README.md
rubocop-govuk-3.8.0 README.md
rubocop-govuk-3.7.0 README.md
rubocop-govuk-3.6.0 README.md