Skip to content
Snippets Groups Projects
Commit 2b92f907 authored by Markus Reiter's avatar Markus Reiter
Browse files

Fix Style/FormatString.

parent 246bb1a3
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
......@@ -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|
......
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