Skip to content

Commit

Permalink
Merge pull request #1315 from kmuto/fix-doc-1309-rubocop
Browse files Browse the repository at this point in the history
disable rubocop warning on a single line
  • Loading branch information
kmuto authored Jun 2, 2019
2 parents 29c3f7b + 80378af commit 5b03046
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inherit_from: .rubocop_todo.yml
#### Lint

Lint/EmptyWhen:
Enabled: false
Enabled: true

Lint/NestedMethodDefinition:
Exclude:
Expand Down
2 changes: 1 addition & 1 deletion lib/review/idgxmlbuilder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def headline(level, label, caption)

@subsubsubsection += 1
print %Q(<sect4 id="sect:#{@chapter.number}.#{@section}.#{@subsection}.#{@subsubsection}.#{@subsubsubsection}">) if @secttags
when 6
when 6 # rubocop:disable Lint/EmptyWhen
else
raise "caption level too deep or unsupported: #{level}"
end
Expand Down

0 comments on commit 5b03046

Please sign in to comment.