We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 984273b + afa5d50 commit cfede01Copy full SHA for cfede01
1 file changed
Library/Homebrew/rubocops/caveats.rb
@@ -48,6 +48,8 @@ def audit_formula(_formula_nodes)
48
problem "Don't use ANSI escape codes in the caveats." if regex_match_group(n, /\e/)
49
end
50
51
+ return if formula_tap != "homebrew-core"
52
+
53
# Forbid dynamic logic in caveats (only if/else/unless)
54
caveats_method = find_method_def(@body, :caveats)
55
return unless caveats_method
0 commit comments