From 5f04fa99dc1609df868df131a7e231a700c90701 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Tue, 4 Oct 2022 19:53:40 +0900 Subject: [PATCH] Enable `Layout/DefEndAlignment` cop Follow-up #46188 - After reverting the merge commit via #46188 ``` $ git revert -m 1 4328d0e16028a46bba79ab775e509a743ceaf18c [enable_layout_def_end_alignment 8445594965] Revert "Merge pull request #46188 from yahonda/follow_up_45081" 1 file changed, 1 insertion(+), 1 deletion(-) $ bundle exec rubocop Inspecting 3041 files ... snip ... Offenses: activerecord/test/cases/query_logs_formatter_test.rb:10:5: W: [Correctable] Layout/DefEndAlignment: end at 10, 4 is not aligned with def at 6, 2. end ^^^ 3041 files inspected, 1 offense detected, 1 offense auto-correctable $ ``` --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 0ca1f644e3..84a787c173 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -69,6 +69,9 @@ Layout/ClosingParenthesisIndentation: Layout/CommentIndentation: Enabled: true +Layout/DefEndAlignment: + Enabled: true + Layout/ElseAlignment: Enabled: true