diff options
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 99614a3fd..3c9ed0386 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -201,6 +201,13 @@ class FormulaAuditor end end present.map!(&:last) + if present.include?("stable block") + %w[url checksum mirror].each do |component| + if present.include?(component) + problem "`#{component}` should be put inside `stable block`" + end + end + end if present.include?("head") && present.include?("head block") problem "Should not have both `head` and `head do`" end |
