Skip to content

Commit a53287f

Browse files
lint: Remove unreachable code (#1137)
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.
1 parent 9e69ea6 commit a53287f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.rubocop.yml

+3
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ Layout/SpaceBeforeComma:
1717

1818
Layout/SpaceAfterComma:
1919
Enabled: true
20+
21+
Lint/UnreachableCode:
22+
Enabled: true

lib/rdoc/rdoc.rb

-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ def parse_file filename
395395
$stderr.puts e.backtrace.join("\n\t") if $DEBUG_RDOC
396396

397397
raise e
398-
nil
399398
end
400399

401400
##

0 commit comments

Comments
 (0)