Skip to content

Commit

Permalink
lint: Remove unreachable code
Browse files Browse the repository at this point in the history
This is an attempt to utilize RuboCop further.
RuboCop was added in 9262fdd
but only a few rules have been enabled.
I believe we can utilize RuboCop more for better code quality,
especially with Lint cops.
This is the first step to enable other Lint cops.
This commit also exclude some auto generated files.
  • Loading branch information
okuramasafumi committed Jul 19, 2024
1 parent 1bb3bec commit 000d3ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ Layout/SpaceBeforeComma:

Layout/SpaceAfterComma:
Enabled: true

Lint/UnreachableCode:
Enabled: true
1 change: 0 additions & 1 deletion lib/rdoc/rdoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ def parse_file filename
$stderr.puts e.backtrace.join("\n\t") if $DEBUG_RDOC

raise e
nil
end

##
Expand Down

0 comments on commit 000d3ab

Please sign in to comment.