org.sonar.l10n.java.rules.squid.S1065.html Maven / Gradle / Ivy
The newest version!
If a label is declared but not used in the program, it can be considered as dead code and should therefore be removed.
This will improve maintainability as developers will not wonder what this label is used for.
Noncompliant Code Example
<<foo>> -- Non-Compliant
BEGIN
DBMS_OUTPUT.PUT_LINE('Hello, world!');
END;
Compliant Solution
-- Compliant
BEGIN
DBMS_OUTPUT.PUT_LINE('Hello, world!');
END;
See
- MISRA C:2012, 2.6 - A function should not contain unused label declarations
© 2015 - 2025 Weber Informatics LLC | Privacy Policy