Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Apr 18, 2023
1 parent 1c517e0 commit ad73180
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ task :proof_readme do
require "html-proofer"
require "redcarpet"

renderer = Redcarpet::Render::HTML.new(\
renderer = Redcarpet::Render::HTML.new(
with_toc_data: true,
)
redcarpet = Redcarpet::Markdown.new(renderer)
Expand Down
4 changes: 2 additions & 2 deletions lib/html_proofer/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Log

def initialize(log_level)
@logger = Yell.new(
format: false, \
format: false,
name: "HTMLProofer", \
level: "gte.#{log_level}",
) do |l|
Expand Down Expand Up @@ -41,7 +41,7 @@ def colorize(level, message)
:red
end

if (STDOUT_LEVELS.include?(level) && $stdout.isatty) || \
if (STDOUT_LEVELS.include?(level) && $stdout.isatty) ||
(STDERR_LEVELS.include?(level) && $stderr.isatty)
Rainbow(message).send(color)
else
Expand Down
4 changes: 2 additions & 2 deletions lib/html_proofer/reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def initialize(logger: nil)
end

def failures=(failures)
@failures = failures.group_by(&:check_name) \
.transform_values { |issues| issues.sort_by { |issue| [issue.path, issue.line] } } \
@failures = failures.group_by(&:check_name)
.transform_values { |issues| issues.sort_by { |issue| [issue.path, issue.line] } }
.sort
end

Expand Down

0 comments on commit ad73180

Please sign in to comment.