README.md in rubocop-rickselby-0.14.0.pre.4 vs README.md in rubocop-rickselby-0.14.0

- old
+ new

@@ -5,13 +5,12 @@ ## Installation Add `rubocop-rickselby` to your Gemfile: ```ruby - group :development, :test do - gem "rubocop-rickselby", "~> 0.10", require: false + gem "rubocop-rickselby", "~> 0.14", require: false end ``` Inherit the desired configuration in your `.rubocop.yml`: @@ -23,9 +22,34 @@ - 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.