---
title: Avoid Unreachable Code
description: "Impact Area Manageability Severity Medium Affected Element Lightning ## Rule ID **SF-0067** ## Impact A return, break, continue, or throw statement should be the last in a block. Statements after these will never execute. This is a bug, or extremely…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/salesforce-rules/avoid-unreachable-code/"
updated: "2025-03-21"
category: Rules
---

# Avoid Unreachable Code

Impact Area

Manageability

           Severity

Medium

           Affected Element

Lightning

## Rule ID

**SF-0067**

## Impact

A return, break, continue, or throw statement should be the last in a block. Statements after these will never execute. This is a bug, or extremely poor style.

## Remediation

Remove any unreachable code segments.

### Time to fix

30 min

## References

See the PMD documentation article: [UnreachableCode](https://pmd.github.io/latest/pmd_rules_ecmascript_codestyle.html#unreachablecode).
