Skip to content

Commit 6f06a33

Browse files
committed
Fix rubocop offenses
``` ❯ bundle exec rubocop -A Inspecting 276 files ...................................................................................................................................................................................................................................................................................W Offenses: tasks/cut_release.rake:41:21: W: [Corrected] Lint/ImplicitStringConcatenation: Combine '\0' and "## #{version} (#{Time.now.strftime('%F')})\n\n" into a single string literal, rather than using implicit string concatenation. Or, if they were intended to be separate method arguments, separate them with a comma. '\0' "## #{version} (#{Time.now.strftime('%F')})\n\n") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tasks/cut_release.rake:41:21: C: [Corrected] Style/StringConcatenation: Prefer string interpolation to string concatenation. '\0' + "## #{version} (#{Time.now.strftime('%F')})\n\n") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 276 files inspected, 2 offenses detected, 2 offenses corrected ```
1 parent fe3b66b commit 6f06a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/cut_release.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace :cut_release do
3838
def add_header_to_changelog(version)
3939
update_file('CHANGELOG.md') do |changelog|
4040
changelog.sub("## Master (Unreleased)\n\n",
41-
'\0' "## #{version} (#{Time.now.strftime('%F')})\n\n")
41+
"\\0## #{version} (#{Time.now.strftime('%F')})\n\n")
4242
end
4343
end
4444

0 commit comments

Comments
 (0)