rspec/rules/S1763/description.adoc

2 lines
328 B
Plaintext
Raw Permalink Normal View History

2021-01-27 13:42:22 +01:00
Some statements (``++return++``, ``++break++``, ``++continue++``, ``++goto++``, ``++switch++``) and ``++throw++`` expressions move control flow out of the current code block. So any unlabeled statements that come after such a jump are unreachable, and either this dead code should be removed, or the logic should be corrected.