From 5122f6ee8cb1dffcaec8934b3c8e6d09eefeea01 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 20 Apr 2024 12:07:21 +0200 Subject: [PATCH] Improve RuboCop exclusions configuration The default `Exclude:` is not inherited when a custom value is provided, so the performance was degraded because time was spent searching in `.git`. Ref: rubocop/rubocop#9325 --- .rubocop.yml | 10 +++++++--- .rubocop_todo.yml | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index e576568..c0ce6bf 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -12,9 +12,13 @@ AllCops: TargetRailsVersion: 7.0 TargetRubyVersion: 3.0 Exclude: - - 'gemfiles/**/*' - - 'vendor/bundle/**/*' - - 'tmp/**/*' + - .git/**/* + - .github/**/* + - bin/**/* + - gemfiles/**/* + - node_modules/**/* + - tmp/**/* + - vendor/**/* Layout/LineLength: Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 35cf0d0..05e37f5 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp` -# using RuboCop version 1.60.2. +# using RuboCop version 1.63.2. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new