CS icon indicating copy to clipboard operation
CS copied to clipboard

CS_TableInit - cyclomatic complexity of 20

Open chillfig opened this issue 1 year ago • 0 comments

Checklist (Please check before submitting)

  • [x] I reviewed the Contributing Guide.
  • [x] I reviewed the README file to see if the feature is in the major future work.
  • [x] I performed a cursory search to see if the feature request is relevant, not redundant, nor in conflict with other tickets.

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.

cs_table_processing.c::CS_TableInit unnecessarily violates the recommendation with a cyclomatic complexity of 20.

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

Requester Info Justin Figueroa, Vantage Systems

chillfig avatar Mar 02 '23 22:03 chillfig