Skip to content

Commit 5f04fa9

Browse files
committed
Enable Layout/DefEndAlignment cop
Follow-up rails#46188 - After reverting the merge commit via rails#46188 ``` $ git revert -m 1 4328d0e [enable_layout_def_end_alignment 8445594965] Revert "Merge pull request rails#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 $ ```
1 parent 0ecfbe2 commit 5f04fa9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ Layout/ClosingParenthesisIndentation:
6969
Layout/CommentIndentation:
7070
Enabled: true
7171

72+
Layout/DefEndAlignment:
73+
Enabled: true
74+
7275
Layout/ElseAlignment:
7376
Enabled: true
7477

0 commit comments

Comments
 (0)