Skip to content

Commit

Permalink
Merge pull request #51779 from andyw8/andyw8/fix-rubocop-autocorrect-…
Browse files Browse the repository at this point in the history
…for-windows

Fix RuboCop autocorrect for Windows compatibility
  • Loading branch information
byroot committed May 11, 2024
2 parents 990432f + 99924b6 commit 3af5c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/configuration.rb
Expand Up @@ -135,7 +135,7 @@ def apply_rubocop_autocorrect_after_generate!
after_generate do |files|
parsable_files = files.filter { |file| File.exist?(file) && file.end_with?(".rb") }
unless parsable_files.empty?
system("bin/rubocop -A --fail-level=E #{parsable_files.shelljoin}", exception: true)
system(RbConfig.ruby, "bin/rubocop", "-A", "--fail-level=E", *parsable_files, exception: true)
end
end
end
Expand Down

0 comments on commit 3af5c07

Please sign in to comment.