aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 4970cd470..be4febc70 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -676,6 +676,10 @@ class FormulaAuditor
if text =~ /def plist/ && text !~ /plist_options/
problem "Please set plist_options when using a formula-defined plist."
end
+
+ if text =~ %r{require "language/go"} && text !~ /go_resource/
+ problem "require \"language/go\" is unnecessary unless using `go_resource`s"
+ end
end
def audit_line(line, lineno)