From 0ddcb9afff34cd1e376107c06972b4f0c17f4d58 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 19 Jul 2024 08:47:05 +0000 Subject: [PATCH] Fix RuboCop offense Layout/EmptyLineBetweenDefs (#39887). git-svn-id: https://svn.redmine.org/redmine/trunk@22939 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 6 ------ config/initializers/10-patches.rb | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 5f4cd446d..2a40ece79 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -28,12 +28,6 @@ Layout/EmptyLineAfterGuardClause: - 'lib/redmine/string_array_diff/diffable.rb' - 'lib/redmine/wiki_formatting/textile/redcloth3.rb' -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines. -Layout/EmptyLineBetweenDefs: - Exclude: - - 'config/initializers/10-patches.rb' - # This cop supports safe autocorrection (--autocorrect). Layout/EmptyLines: Exclude: diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index df8afc291..716330641 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -8,6 +8,7 @@ module ActiveRecord undef open end end + class Relation ; undef open ; end end