Skip to content

Commit

Permalink
Merge pull request #1173 from Homebrew/typecheck-in-tap-syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Aug 20, 2024
2 parents 0b3efbb + 67d79c2 commit 6fe0121
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tests/tap_syntax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ def run!(args:)
test_header(:TapSyntax)
return unless tap.installed?

# Run `brew typecheck` if this tap is typed.
# TODO: consider in future if we want to allow unsupported taps here.
if tap.official? && quiet_system(git, "-C", tap.path.to_s, "grep", "-qE", "^# typed: (true|strict|strong)$")
test "brew", "typecheck", tap.name
end

test "brew", "style", tap.name unless args.stable?

return if tap.formula_files.blank? && tap.cask_files.blank?
Expand Down

0 comments on commit 6fe0121

Please sign in to comment.