diff --git a/docs/Homebrew/FormulaAuditor.html b/docs/Homebrew/FormulaAuditor.html index b6845d02e..7bc93d5ed 100644 --- a/docs/Homebrew/FormulaAuditor.html +++ b/docs/Homebrew/FormulaAuditor.html @@ -857,7 +857,7 @@
-914 -915 -916 -917 -918 -919 -920 -921 -922 -923 924 -925+925 +926 +927 +928 +929 +930 +931 +932 +933 +934 +935
# File 'formula_auditor.rb', line 914 +# File 'formula_auditor.rb', line 924 def audit only_audits = @only @@ -3297,19 +3319,19 @@
-895 -896 -897 -898 -899 -900 -901 -902 -903 -904+905 +906 +907 +908 +909 +910 +911 +912 +913 +914
# File 'formula_auditor.rb', line 895 +# File 'formula_auditor.rb', line 905 def audit_prefix_has_contents return unless formula.prefix.directory? @@ -3356,21 +3378,21 @@
-882 -883 -884 -885 -886 -887 -888 -889 -890 -891 892 -893+893 +894 +895 +896 +897 +898 +899 +900 +901 +902 +903
# File 'formula_auditor.rb', line 882 +# File 'formula_auditor.rb', line 892 def audit_reverse_migration # Only enforce for new formula being re-added to core @@ -3390,9 +3412,9 @@
# File 'formula_auditor.rb', line 800 -def audit_revision_and_version_scheme +def audit_revision new_formula_problem("New formulae should not define a revision.") if @new_formula && !formula.revision.zero? return unless @git @@ -3470,20 +3482,10 @@return if formula.stable.blank? current_version = formula.stable.version - current_version_scheme = formula.version_scheme current_revision = formula.revision previous_committed, newest_committed = committed_version_info - unless previous_committed[:version_scheme].nil? - if current_version_scheme < previous_committed[:version_scheme] - problem "version_scheme should not decrease (from #{previous_committed[:version_scheme]} " \ - "to #{current_version_scheme})" - elsif current_version_scheme > (previous_committed[:version_scheme] + 1) - problem "version_schemes should only increment by 1" - end - end - if (previous_committed[:version] != newest_committed[:version] || current_version != newest_committed[:version]) && !current_revision.zero? && @@ -4030,16 +4032,6 @@
-863 -864 -865 -866 -867 -868 -869 -870 -871 -872 873 874 875 @@ -4047,10 +4039,20 @@+880 +881 +882 +883 +884 +885 +886 +887 +888 +889 +890877 878 879 -880
# File 'formula_auditor.rb', line 863 +# File 'formula_auditor.rb', line 873 def audit_text bin_names = Set.new @@ -4105,16 +4107,6 @@
-839 -840 -841 -842 -843 -844 -845 -846 -847 -848 849 850 851 @@ -4127,10 +4119,20 @@+861 +862 +863 +864 +865 +866 +867 +868 +869 +870 +871858 859 860 -861
# File 'formula_auditor.rb', line 839 +# File 'formula_auditor.rb', line 849 def audit_unconfirmed_checksum_change return unless @git @@ -4158,6 +4160,83 @@
+ This method is part of a private API. + This method may only be used in the Homebrew/brew repository. + Third parties should avoid using this method if possible, as it may be removed or changed without warning. +
+ + + +
+ + + +829 +830 +831 +832 +833 +834 +835 +836 +837 +838 +839 +840 +841 +842 +843 +844 +845 +846 +847+ |
+
+ # File 'formula_auditor.rb', line 829 + +def audit_version_scheme + return unless @git + return unless formula.tap # skip formula not from core or any taps + return unless formula.tap.git? # git log is required + return if formula.stable.blank? + + current_version_scheme = formula.version_scheme + + previous_committed, = committed_version_info + + return if previous_committed[:version_scheme].nil? + + if current_version_scheme < previous_committed[:version_scheme] + problem "version_scheme should not decrease (from #{previous_committed[:version_scheme]} " \ + "to #{current_version_scheme})" + elsif current_version_scheme > (previous_committed[:version_scheme] + 1) + problem "version_schemes should only increment by 1" + end +end+ |
+
-910 -911 -912+920 +921 +922
# File 'formula_auditor.rb', line 910 +# File 'formula_auditor.rb', line 920 def problem_if_output(output) problem(output) if output @@ -4365,12 +4444,12 @@
-906 -907 -908+916 +917 +918
# File 'formula_auditor.rb', line 906 +# File 'formula_auditor.rb', line 916 def quote_dep(dep) dep.is_a?(Symbol) ? dep.inspect : "'#{dep}'" diff --git a/docs/method_list.html b/docs/method_list.html index 087c2543a..5146aa17a 100644 --- a/docs/method_list.html +++ b/docs/method_list.html @@ -2430,7 +2430,7 @@Method List