Skip to content

Commit f19cfb7

Browse files
AZQ1994claude
andcommitted
Address newer RuboCop offenses surfaced on CI
Newer RuboCop releases (resolved by CI via bundler-cache) activated cops not present when v1.0.0 was released. The two offenders here are unrelated to the marshal-loader change but block CI on this branch: - Disable Style/OneClassPerFile in .rubocop.yml. Both the AR preloader monkey-patch in lib/simple_master.rb and the STI subclasses in the rails_sample models intentionally pack related declarations. - Realign the inner-block indentation in queryable.rb so the closing brace and the if/else body share the same anchor. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7260c19 commit f19cfb7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ Style/Lambda:
6060
Style/MultilineBlockChain:
6161
Enabled: false
6262

63+
Style/OneClassPerFile:
64+
Enabled: false
65+
6366
Style/StringLiterals:
6467
Enabled: false
6568

lib/simple_master/master/queryable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def insert_queries(records, on_duplicate_key_update = false, batch_size: 10000)
4242
else
4343
record.send(method_name)
4444
end
45-
}.join(", ").then { "(#{_1})" }
45+
}.join(", ").then { "(#{_1})" }
4646
}.join(", \n")
4747

4848
"INSERT INTO `#{table_name}` \n#{sql_columns} VALUES \n#{values_sql}#{on_duplicate_key_update_sql};\n"

0 commit comments

Comments
 (0)