diff options
| author | Markus Reiter | 2016-09-23 17:29:29 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-23 17:29:29 +0200 |
| commit | 2b92f907b73a87fd76c7cd82119b3b5fa5491026 (patch) | |
| tree | 3c4ce664ce715785d9a642d3a306f2b63446cd30 /Library | |
| parent | 246bb1a3b18cf41c2499cc78b7eac8fab503c5d6 (diff) | |
| download | brew-2b92f907b73a87fd76c7cd82119b3b5fa5491026.tar.bz2 | |
Fix Style/FormatString.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/.rubocop_todo.yml | 7 | ||||
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/Library/.rubocop_todo.yml b/Library/.rubocop_todo.yml index 80fa07aab..4819be65a 100644 --- a/Library/.rubocop_todo.yml +++ b/Library/.rubocop_todo.yml @@ -119,13 +119,6 @@ Style/ConstantName: Exclude: - 'Homebrew/os/mac.rb' -# Offense count: 1 -# Configuration parameters: EnforcedStyle, SupportedStyles. -# SupportedStyles: format, sprintf, percent -Style/FormatString: - Exclude: - - 'Homebrew/formula.rb' - # Offense count: 13 # Configuration parameters: AllowedVariables. Style/GlobalVars: diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 7a5584cdf..ef10e67a2 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1668,7 +1668,7 @@ class Formula @exec_count ||= 0 @exec_count += 1 - logfn = "#{logs}/#{active_log_prefix}%02d.%s" % [@exec_count, File.basename(cmd).split(" ").first] + logfn = format("#{logs}/#{active_log_prefix}%02d.%s", @exec_count, File.basename(cmd).split(" ").first) logs.mkpath File.open(logfn, "w") do |log| |
