Skip to content
Snippets Groups Projects
Commit 5e073f1f authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1528 from MikeMcQuaid/audit-devel-revision

audit: don't check devel version_scheme/revision.
parents 0e221880 b7f0edd1
No related branches found
No related tags found
No related merge requests found
......@@ -666,21 +666,21 @@ class FormulaAuditor
attributes_map = fv.version_attributes_map(attributes, "origin/master")
[:stable, :devel].each do |spec|
attributes.each do |attribute|
spec_attribute_map = attributes_map[attribute][spec]
next if spec_attribute_map.nil? || spec_attribute_map.empty?
attributes.each do |attribute|
stable_attribute_map = attributes_map[attribute][:stable]
next if stable_attribute_map.nil? || stable_attribute_map.empty?
attributes_for_version = spec_attribute_map[formula.version]
next if attributes_for_version.nil? || attributes_for_version.empty?
attributes_for_version = stable_attribute_map[formula.version]
next if attributes_for_version.nil? || attributes_for_version.empty?
old_attribute = formula.send(attribute)
max_attribute = attributes_for_version.max
if max_attribute && old_attribute < max_attribute
problem "#{spec} #{attribute} should not decrease (from #{max_attribute} to #{old_attribute})"
end
old_attribute = formula.send(attribute)
max_attribute = attributes_for_version.max
if max_attribute && old_attribute < max_attribute
problem "#{attribute} should not decrease (from #{max_attribute} to #{old_attribute})"
end
end
[:stable, :devel].each do |spec|
spec_version_scheme_map = attributes_map[:version_scheme][spec]
next if spec_version_scheme_map.nil? || spec_version_scheme_map.empty?
......
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