Skip to content

Commit

Permalink
[ruby/rdoc] lint: Remove unreachable code
Browse files Browse the repository at this point in the history
(ruby/rdoc#1137)

This is an attempt to utilize RuboCop further.
RuboCop was added in ruby/rdoc@9262fdd43a3a
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.

ruby/rdoc@a53287fce0
  • Loading branch information
okuramasafumi authored and matzbot committed Dec 8, 2024
1 parent dd43af3 commit 895f2c2
Showing 1 changed file with 0 additions and 1 deletion.
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 895f2c2

Please sign in to comment.