[ruby/rdoc] lint: Remove unreachable code

(https://github.com/ruby/rdoc/pull/1137)

This is an attempt to utilize RuboCop further.
RuboCop was added in https://github.com/ruby/rdoc/commit/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.

https://github.com/ruby/rdoc/commit/a53287fce0
This commit is contained in:
OKURA Masafumi 2024-12-09 08:14:14 +09:00 committed by git
parent dd43af3be7
commit 895f2c2152

View File

@ -395,7 +395,6 @@ The internal error was:
$stderr.puts e.backtrace.join("\n\t") if $DEBUG_RDOC
raise e
nil
end
##