nasa / nasa/CS

CS_TableInit - cyclomatic complexity of 20

Open
#64 0 comments 0 reactions 1 assignee View on GitHub

@jphickey is already working on this.

Since Nov 18, 2025.

enhancement
Dominant language
C
Stars
36
Forks
41
Avg merge
11d 19h
Merged PRs (30d)
2

Description

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I reviewed the README file to see if the feature is in the major future work.
  • 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.