From af02d94f735e81f1662521f32448af16c63a573e Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:23:28 -0400 Subject: [PATCH] style: fix tap checking `brew style` tap support was broken in 7d0ac4d (#17357), so now something like `brew style homebrew/core` exits without checking anything. This happens because the new file-handling logic doesn't do anything with a tap path. Previously, a tap path would be added to `ruby_files` but now it isn't added to any of the arrays of files to check. This fixes the issue by adding some logic to add the path to the `ruby_files` array if it's a tap. --- Library/Homebrew/style.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/style.rb b/Library/Homebrew/style.rb index 3dc8c05fe9..dd25521857 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -57,6 +57,7 @@ module Homebrew when ".yml" actionlint_files << path if path.realpath.to_s.include?("/.github/workflows/") else + ruby_files << path if path.tap? shell_files << path if path.realpath == HOMEBREW_BREW_FILE.realpath end end