Empty 'else' block

Last modified: Last modified: 18 September 2025

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 ID: RubyEmptyElseBlockInspection