Wrap the endless range literal
1985..
to avoid precedence ambiguity.79 FileUtils.remove file_path
80end
81
82case current_year when 1985..83 dont_time_travel84end
Description
Range literal should be enclosed in parentheses when the end of the range is at a line break, otherwise the intention of the code becomes ambigous.
Bad practice
1..
42
Recommended
(1..)
42
1..42
(1..42)
(1..
42)