Sha256: 292cdd9555b69f4360f86f0f4c0fa289b841a63e802ca84e64743fc02b6f44ba

Contents?: true

Size: 1.34 KB

Versions: 19

Compression:

Stored size: 1.34 KB

Contents

# My rubocop setup

Config in `./config`

## Installation

Add `rubocop-rickselby` to your Gemfile:

```ruby
group :development, :test do
  gem "rubocop-rickselby", "~> 0.14", require: false
end
```

Inherit the desired configuration in your `.rubocop.yml`:

```yaml
# .rubocop.yml
inherit_gem:
  rubocop-rickselby:
    - config/default.yml # generic Ruby rules and cops
    - config/capybara.yml # capybara-specific rules and cops
    - config/factory_bot.yml # factory_bot-specific rules and cops
    - config/rails.yml # Rails-specific rules and cops
    - config/rspec.yml # RSpec-specific rules and cops
    - config/sequel.yml # sequel-specific rules and cops
```

You can override cops in your own local `.rubocop.yml` file as required.

### `erb-lint`

Config is also available for [https://github.com/Shopify/erb-lint](erb-lint).

Add a local `.erb-lint.yml` file to your project:

```yaml
---
exclude:
  - 'node_modules/**/*'
  - 'vendor/**/*'
inherit_gem:
  rubocop-rickselby:
    - config/erb-lint.yml
```

The default file path is `**/*.html{+*,}.erb` - this can be changed with a `glob` setting in `.erb-lint.yml`, e.g.

```yaml
---
glob: "**/*.erb"
```

## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/rickselby/rubocop-rickselby.

## License
The gem is available as open source under the terms of the MIT License.

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rubocop-rickselby-0.33.0 README.md
rubocop-rickselby-0.32.0 README.md
rubocop-rickselby-0.31.0 README.md
rubocop-rickselby-0.28.0 README.md
rubocop-rickselby-0.27.0 README.md
rubocop-rickselby-0.26.0 README.md
rubocop-rickselby-0.25.0 README.md
rubocop-rickselby-0.24.0 README.md
rubocop-rickselby-0.23.0 README.md
rubocop-rickselby-0.22.0 README.md
rubocop-rickselby-0.21.0 README.md
rubocop-rickselby-0.20.1 README.md
rubocop-rickselby-0.20.0 README.md
rubocop-rickselby-0.19.0 README.md
rubocop-rickselby-0.18.0 README.md
rubocop-rickselby-0.17.0 README.md
rubocop-rickselby-0.16.0 README.md
rubocop-rickselby-0.15.0 README.md
rubocop-rickselby-0.14.0 README.md