Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main - cyclomatic complexity of 21 #132

Closed
chillfig opened this issue Mar 3, 2023 · 0 comments · Fixed by #137
Closed

main - cyclomatic complexity of 21 #132

chillfig opened this issue Mar 3, 2023 · 0 comments · Fixed by #137
Assignees
Labels
enhancement New feature or request

Comments

@chillfig
Copy link

chillfig commented Mar 3, 2023

Is your feature request related to a problem? Please describe.
NASA guidelines in NPR 7150.2D recommends maintaining a cyclomatic complexity in software, in particular flight software of 15.

elf2cfetbl.c::main unnecessarily violates the recommendation with a cyclomatic complexity of 21.

Describe the solution you'd like
Clean up main such that it has a cyclomatic complexity of 15 or less.

Describe alternatives you've considered
Leave as-is

Additional context
Imported from JSC static analysis audit

Requester Info
Justin Figueroa, Vantage Systems

@chillfig chillfig added the enhancement New feature or request label Mar 3, 2023
chillfig pushed a commit to chillfig/elf2cfetbl that referenced this issue Aug 3, 2023
@chillfig chillfig self-assigned this Aug 3, 2023
dzbaker added a commit that referenced this issue Sep 1, 2023
Fix #132, Adds CheckStatus helper functions
@dzbaker dzbaker closed this as completed in bf874a7 Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant