Skip to content

Commit afa5d50

Browse files
committed
rubocops/caveats: only apply dynamic logic check to core.
This doesn't really matter for non-API taps.
1 parent 2703f12 commit afa5d50

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Library/Homebrew/rubocops/caveats.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def audit_formula(_formula_nodes)
4848
problem "Don't use ANSI escape codes in the caveats." if regex_match_group(n, /\e/)
4949
end
5050

51+
return if formula_tap != "homebrew-core"
52+
5153
# Forbid dynamic logic in caveats (only if/else/unless)
5254
caveats_method = find_method_def(@body, :caveats)
5355
return unless caveats_method

0 commit comments

Comments
 (0)