From 0afe9382715360af01ece28825a548b2868a117b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Ulsberg?= Date: Thu, 22 Sep 2022 13:24:31 +0200 Subject: [PATCH] Appease RuboCop Fix the following errors pointed out by RuboCop: Rakefile:27:5: C: [Corrected] Style/TrailingCommaInArguments: Put a comma after the last parameter of a multiline method call. with_toc_data: true ^^^^^^^^^^^^^^^^^^^ lib/html_proofer.rb:7:3: C: [Corrected] Style/TrailingCommaInArguments: Put a comma after the last parameter of a multiline method call. "html_proofer" => "HTMLProofer" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --- Rakefile | 2 +- lib/html_proofer.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index c75cd4c0..47ed6c01 100644 --- a/Rakefile +++ b/Rakefile @@ -24,7 +24,7 @@ task :proof_readme do require "redcarpet" renderer = Redcarpet::Render::HTML.new(\ - with_toc_data: true + with_toc_data: true, ) redcarpet = Redcarpet::Markdown.new(renderer) html = redcarpet.render(File.read("README.md")) diff --git a/lib/html_proofer.rb b/lib/html_proofer.rb index 1790aa16..4de20a23 100644 --- a/lib/html_proofer.rb +++ b/lib/html_proofer.rb @@ -4,7 +4,7 @@ lib_dir = File.join(File.dirname(__dir__), "lib") gem_loader = Zeitwerk::Loader.for_gem gem_loader.inflector.inflect( - "html_proofer" => "HTMLProofer" + "html_proofer" => "HTMLProofer", ) gem_loader.ignore(File.join(lib_dir, "html-proofer.rb")) gem_loader.setup