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

ProcessCmdLineOptions - cyclomatic complexity of 45 #128

Open
chillfig opened this issue Mar 3, 2023 · 0 comments
Open

ProcessCmdLineOptions - cyclomatic complexity of 45 #128

chillfig opened this issue Mar 3, 2023 · 0 comments
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::ProcessCmdLineOptions unnecessarily violates the recommendation with a cyclomatic complexity of 45.

Describe the solution you'd like
Clean up ProcessCmdLineOptions 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
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

No branches or pull requests

1 participant