mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #20155 from Homebrew/core-caveats
rubocops/caveats: only apply dynamic logic check to core.
This commit is contained in:
commit
cfede01ea9
@ -48,6 +48,8 @@ module RuboCop
|
|||||||
problem "Don't use ANSI escape codes in the caveats." if regex_match_group(n, /\e/)
|
problem "Don't use ANSI escape codes in the caveats." if regex_match_group(n, /\e/)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return if formula_tap != "homebrew-core"
|
||||||
|
|
||||||
# Forbid dynamic logic in caveats (only if/else/unless)
|
# Forbid dynamic logic in caveats (only if/else/unless)
|
||||||
caveats_method = find_method_def(@body, :caveats)
|
caveats_method = find_method_def(@body, :caveats)
|
||||||
return unless caveats_method
|
return unless caveats_method
|
||||||
|
Loading…
x
Reference in New Issue
Block a user