aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-09-18 13:28:15 +0100
committerGitHub2016-09-18 13:28:15 +0100
commit59b7f16bfd9c1968aae0a2f1cd9a43d3d160d99f (patch)
tree17d2adec882cdeef36a8fd40d891fe7fe4021572 /Library/Homebrew/dev-cmd/audit.rb
parent56541001a45ea58c54096bc42584c17d72b1415a (diff)
parent1bdbb0f462e4c3557bbcba0b203696bdcf025bb4 (diff)
downloadbrew-59b7f16bfd9c1968aae0a2f1cd9a43d3d160d99f.tar.bz2
Merge pull request #989 from MikeMcQuaid/rubocop-final
Rubocop: apply auto-corrections and don't use hash-rockets
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 511610a9a..20e9a8aff 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -62,11 +62,11 @@ module Homebrew
if strict
# Check style in a single batch run up front for performance
- style_results = check_style_json(files, :realpath => true)
+ style_results = check_style_json(files, realpath: true)
end
ff.each do |f|
- options = { :new_formula => new_formula, :strict => strict, :online => online }
+ options = { new_formula: new_formula, strict: strict, online: online }
options[:style_offenses] = style_results.file_offenses(f.path) if strict
fa = FormulaAuditor.new(f, options)
fa.audit
@@ -172,7 +172,7 @@ class FormulaAuditor
return unless @style_offenses
display_cop_names = ARGV.include?("--display-cop-names")
@style_offenses.each do |offense|
- problem offense.to_s(:display_cop_name => display_cop_names)
+ problem offense.to_s(display_cop_name: display_cop_names)
end
end
@@ -655,7 +655,7 @@ class FormulaAuditor
return unless formula.tap # skip formula not from core or any taps
return unless formula.tap.git? # git log is required
- fv = FormulaVersions.new(formula, :max_depth => 10)
+ fv = FormulaVersions.new(formula, max_depth: 10)
attributes = [:revision, :version_scheme]
attributes_map = fv.version_attributes_map(attributes, "origin/master")