Empty 'else' block
Reports empty else
blocks. While occasionally intentional, empty else
blocks usually indicate coding errors and can make debugging difficult.
Use the Ignore 'else' blocks with comments checkbox to define whether else
blocks containing only comments count.
Inspired by 'Ruby Style Guide'
Inspection options
Option | Type | Default |
---|---|---|
Ignore 'else' blocks with comments | Checkbox | true |
Inspection Details | |
---|---|
Available in: | Qodana for Ruby 2023.3, RubyMine 2023.3 |
Plugin: | Ruby, 233.SNAPSHOT |
Last modified: 13 July 2023