From dcc5659a7059f1cbce8df25e81de91da3493936c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 14 Jun 2024 16:08:49 +0100 Subject: [PATCH] style: reject *.sh directories. Otherwise silly things happen like thinking formulae.brew.sh directories are files. --- Library/Homebrew/style.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/style.rb b/Library/Homebrew/style.rb index 777be37c66..eddd4efeaa 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -62,7 +62,7 @@ module Homebrew shell_scripts else path.glob("**/*.sh") - .reject { |path| path.to_s.include?("/vendor/") } + .reject { |path| path.to_s.include?("/vendor/") || path.directory? } end actionlint_files += (path/".github/workflows").glob("*.y{,a}ml") end