Fix Style/FormatString.
This commit is contained in:
parent
246bb1a3b1
commit
2b92f907b7
@ -119,13 +119,6 @@ Style/ConstantName:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- 'Homebrew/os/mac.rb'
|
- 'Homebrew/os/mac.rb'
|
||||||
|
|
||||||
# Offense count: 1
|
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
||||||
# SupportedStyles: format, sprintf, percent
|
|
||||||
Style/FormatString:
|
|
||||||
Exclude:
|
|
||||||
- 'Homebrew/formula.rb'
|
|
||||||
|
|
||||||
# Offense count: 13
|
# Offense count: 13
|
||||||
# Configuration parameters: AllowedVariables.
|
# Configuration parameters: AllowedVariables.
|
||||||
Style/GlobalVars:
|
Style/GlobalVars:
|
||||||
|
|||||||
@ -1668,7 +1668,7 @@ class Formula
|
|||||||
|
|
||||||
@exec_count ||= 0
|
@exec_count ||= 0
|
||||||
@exec_count += 1
|
@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
|
logs.mkpath
|
||||||
|
|
||||||
File.open(logfn, "w") do |log|
|
File.open(logfn, "w") do |log|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user