Skip to content

Commit

Permalink
Fix new Rubocop violation
Browse files Browse the repository at this point in the history
  • Loading branch information
infertux committed Jul 29, 2020
1 parent 234a5a7 commit b4c031d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bashcov/lexer.rb
Expand Up @@ -71,7 +71,7 @@ def complete_coverage # rubocop:disable Metrics/MethodLength

private

def mark_multiline(lines, lineno, regexp, forward: true)
def mark_multiline(lines, lineno, regexp, forward: true) # rubocop:disable Metrics/CyclomaticComplexity
seek_forward = lines[lineno..-1].join
return unless (multiline_match = seek_forward.match(regexp))

Expand All @@ -95,7 +95,7 @@ def mark_line(line, lineno)
@coverage[lineno] = Bashcov::Line::UNCOVERED if relevant?(line)
end

def relevant?(line) # rubocop:disable Metrics/CyclomaticComplexity
def relevant?(line)
line.sub!(/ #.*\Z/, "") # remove comments
line.strip!

Expand Down

0 comments on commit b4c031d

Please sign in to comment.