From eb9dc3c1150e207e5b84616d2e6b6aa0417ca333 Mon Sep 17 00:00:00 2001 From: Takuya N Date: Sun, 4 Jan 2026 06:55:03 +0000 Subject: [PATCH] docs: update usage of rubocop-rails integration cf. rubocop/rubocop-rails PR 1476 Signed-off-by: Takuya Noguchi Signed-off-by: Takuya N --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ecba0f0a..faa0df37 100644 --- a/README.md +++ b/README.md @@ -171,17 +171,17 @@ packs/ ``` #### rubocop-rails -[rubocop-rails](https://github.com/rubocop/rubocop-rails) [targets paths](https://github.com/rubocop/rubocop-rails/blob/master/config/default.yml) starting with `app/`. You might need to override the `Include` globs to include your packs code. + +Use [rubocop-rails](https://github.com/rubocop/rubocop-rails) 2.32.0 or higher. + +If you has your own custom cop, you might need to use `Include` globs to include your packs code. Examples: ```yml -Rails/EnumHash: - Include: - - '**/app/models/**/*.rb' -Rails/InverseOf: +Custom/CustomCopOne: Include: - '**/app/models/**/*.rb' -Rails/LexicallyScopedActionFilter: +Custom/CustomCopTwo: Include: - '**/app/controllers/**/*.rb' - '**/app/mailers/**/*.rb'