
Fix a regression introduced in PR #8542, which wouldn’t exclude formulae and casks from stricter style checks properly unless tapped. This caused `brew audit Formula/formula.rb` to report violations which were not meant for formulae and casks. The fix is to add Exclude patterns for formulae and casks in any `git clone`d tap’s working tree. Working outside of the productive Homebrew installation makes sure that the latter doesn’t interfere with development, and vice versa. It also helps track work in progress, especially if one tends to forget things.
15 lines
376 B
Ruby
15 lines
376 B
Ruby
cask "with-conditional-caveats" do
|
|
version "1.2.3"
|
|
sha256 "67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94"
|
|
|
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
|
homepage "https://brew.sh/"
|
|
|
|
app "Caffeine.app"
|
|
|
|
# a do block may print and use a DSL
|
|
caveats do
|
|
puts "This caveat is conditional" unless String("Caffeine") == "Caffeine"
|
|
end
|
|
end
|