SonarQube: Remove code that will never be executed #2506
Labels
component: code cleanup
Code cleanup and maintenance issue
priority: medium
Medium Priority
reporting: DTC AF METplus
Air Force METplus Project
requestor: USAF
United States Air Force
type: task
An actionable item of work
Milestone
Describe the Task
SonarQube flags as a
Major Bug
any code that will never be executed. There are 72 instances of this in develop branch and all of them are calls toreturn
orbreak
immediately after a call toexit
. These were originally added to satisfy earlier compiler versions. However, the GCC version 8.3.0 (g++ (Debian 8.3.0-6) 8.3.0
) now compilers that code without complaint.This task is to resolve all of these SonarQube bugs.
Here's the SonarQube explanation:
Time Estimate
2 hours.
Sub-Issues
Consider breaking the task down into sub-issues.
No sub-issues.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
2771021
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
No impacts.
Task Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Development issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: