From ef427123ad51269fd5b45eeba327bd626e420974 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Thu, 1 Feb 2024 17:45:54 +0000 Subject: [ruby/irb] Add rubocop with a few basic styling rules (https://github.com/ruby/irb/pull/849) * Use rubocop to enforce a few styling rules * Add a CI job for linting https://github.com/ruby/irb/commit/4f60cd88bb --- test/irb/test_input_method.rb | 1 - test/irb/test_workspace.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/irb/test_input_method.rb b/test/irb/test_input_method.rb index 0b52d4cbc3..7644d3176a 100644 --- a/test/irb/test_input_method.rb +++ b/test/irb/test_input_method.rb @@ -170,4 +170,3 @@ module TestIRB end end end - diff --git a/test/irb/test_workspace.rb b/test/irb/test_workspace.rb index ff17b1a22c..8c7310578a 100644 --- a/test/irb/test_workspace.rb +++ b/test/irb/test_workspace.rb @@ -91,7 +91,7 @@ module TestIRB irb_path = "#{top_srcdir}/#{dir}/irb" File.exist?(irb_path) end or omit 'irb command not found' - assert_in_out_err(bundle_exec + ['-W0', "-C#{top_srcdir}", '-e', <<~RUBY , '--', '-f', '--'], 'binding.local_variables', /\[:_\]/, [], bug17623) + assert_in_out_err(bundle_exec + ['-W0', "-C#{top_srcdir}", '-e', <<~RUBY, '--', '-f', '--'], 'binding.local_variables', /\[:_\]/, [], bug17623) version = 'xyz' # typical rubygems loading file load('#{irb_path}') RUBY -- cgit v1.2.3