mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
rubocops/caveats: only apply dynamic logic check to core.
This doesn't really matter for non-API taps.
This commit is contained in:
parent
2703f12875
commit
afa5d50b36
@ -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