From c4cda93adeda3f82fe1a2673518e2e717ef7077f Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Mon, 3 Jun 2024 11:28:32 +1000 Subject: [PATCH] Address RuboCop violation I usually use Vim for Ruby files, where I have RuboCop configured. Today, I used VS Code, where I _should have_ configured RuboCop but evidently have not. --- tests/test-that-all-files-are-executable.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test-that-all-files-are-executable.rb b/tests/test-that-all-files-are-executable.rb index 11f79e5c..8d13640c 100755 --- a/tests/test-that-all-files-are-executable.rb +++ b/tests/test-that-all-files-are-executable.rb @@ -12,7 +12,8 @@ # # See: https://github.com/Automattic/a8c-ci-toolkit-buildkite-plugin/pull/42 context 'All Unix Commands Should Be Executable' do - Dir.children('bin') + Dir + .children('bin') # Ignore Windows PowerShell scripts .reject { |f| f.end_with?('.ps1') } .map { |f| File.new(File.join('bin', f)) }.each do |file|