From b4a1e98f2eecb98ff26ec84cc46ddc7abfd694ca Mon Sep 17 00:00:00 2001 From: John Bampton Date: Wed, 25 Jun 2025 18:01:20 +1000 Subject: [PATCH] Rubocop: fix target Ruby version; add two more cops; fix lint error https://docs.rubocop.org/rubocop/cops_layout.html#layoutassignmentindentation https://docs.rubocop.org/rubocop/cops_layout.html#layoutblockendnewline --- .github/linters/.rubocop.yml | 8 +++++++- test/t/bs_block.rb | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/linters/.rubocop.yml b/.github/linters/.rubocop.yml index 9eeb6d8cc..5475548be 100644 --- a/.github/linters/.rubocop.yml +++ b/.github/linters/.rubocop.yml @@ -1,6 +1,12 @@ AllCops: DisabledByDefault: true - TargetRubyVersion: 3.4.0 + TargetRubyVersion: 3.4 + +Layout/AssignmentIndentation: + Enabled: true + +Layout/BlockEndNewline: + Enabled: true Layout/IndentationStyle: Enabled: true diff --git a/test/t/bs_block.rb b/test/t/bs_block.rb index f3ead4f2a..8853db8b0 100644 --- a/test/t/bs_block.rb +++ b/test/t/bs_block.rb @@ -330,7 +330,8 @@ assert('BS Block 27') do 3.times{|ib| 2.times{|jb| sum += ib + jb - }} + } + } assert_equal sum, 9 end