Skip to content
Snippets Groups Projects
Commit 51810ae1 authored by Xu Cheng's avatar Xu Cheng
Browse files

audit: fix for no-compat mode

parent 33befcf3
No related branches found
No related tags found
No related merge requests found
......@@ -520,6 +520,7 @@ class FormulaAuditor
end
def audit_patches
return unless formula.respond_to?(:patches)
legacy_patches = Patch.normalize_legacy_patches(formula.patches).grep(LegacyPatch)
if legacy_patches.any?
problem "Use the patch DSL instead of defining a 'patches' method"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment