audit: fix for no-compat mode
This commit is contained in:
parent
33befcf312
commit
51810ae1ea
@ -520,6 +520,7 @@ class FormulaAuditor
|
|||||||
end
|
end
|
||||||
|
|
||||||
def audit_patches
|
def audit_patches
|
||||||
|
return unless formula.respond_to?(:patches)
|
||||||
legacy_patches = Patch.normalize_legacy_patches(formula.patches).grep(LegacyPatch)
|
legacy_patches = Patch.normalize_legacy_patches(formula.patches).grep(LegacyPatch)
|
||||||
if legacy_patches.any?
|
if legacy_patches.any?
|
||||||
problem "Use the patch DSL instead of defining a 'patches' method"
|
problem "Use the patch DSL instead of defining a 'patches' method"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user