Skip to content

fix: comp/req/fix parity gaps (v0.5.32)#42

Merged
SoundMatt merged 1 commit into
mainfrom
fix/comp-req-fix-parity
Jun 14, 2026
Merged

fix: comp/req/fix parity gaps (v0.5.32)#42
SoundMatt merged 1 commit into
mainfrom
fix/comp-req-fix-parity

Conversation

@SoundMatt

Copy link
Copy Markdown
Owner

Summary

  • cfusa comp: Text summary line changed to "Total functions: N Exceeding threshold: N"; JSON output adds top-level "total" and "exceeding" fields. Parity with go-FuSa TestRunComp_Text_NoExceedances / TestRunComp_JSON.
  • cfusa req import: CSV empty file → exit 2; bad CSV header (first field ≠ "id") → exit 2; file not found → exit 3. XML formats propagate read/parse errors as exit 3 through do_req_import. Parity with TestRunReqImport_CSVEmptyFile, TestRunReqImport_CSVBadHeader, TestRunReqImport_CSVReadError.
  • cfusa fix: Added --report <file> flag that writes a JSON findings report. Parity with TestRunFix_WithFindingsAndOutput.
  • Version bump to v0.5.32.

Test plan

  • 34/34 tests pass locally
  • CI passes
  • cfusa comp --format text shows Exceeding threshold: in summary
  • cfusa req import returns exit 2 for empty CSV, exit 2 for bad header, exit 3 for missing file
  • cfusa fix --report /tmp/r.json creates the file and exits 0 or 1

…flag (v0.5.32)

- cfusa comp: text summary now shows "Total functions: N  Exceeding
  threshold: N"; JSON adds top-level "total" and "exceeding" fields.
  Parity with go-FuSa TestRunComp_Text_NoExceedances / TestRunComp_JSON.
- cfusa req import: CSV empty file → exit 2; bad header → exit 2;
  file not found → exit 3. All XML formats propagate read/parse errors
  (exit 3) through do_req_import. Parity with TestRunReqImport_CSV*.
- cfusa fix: --report <file> writes JSON findings report. Parity with
  TestRunFix_WithFindingsAndOutput.
- Bump version to v0.5.32; update CHANGELOG, Dockerfile, CMakeLists.txt,
  .fusa-reqs.json with REQ-COMP-TEXT001 / REQ-CLI-REQ002 / REQ-CLI-FIX001.

Signed-off-by: Matt Jones <matt@jellybaby.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Signed-off-by: Matt Jones <47545907+SoundMatt@users.noreply.github.com>
Comment thread tests/test_cli_commands.c
{
char path[256];
snprintf(path, sizeof(path), "%s/empty.csv", CLI_TEST_DIR);
FILE *f = fopen(path, "w"); if (f) fclose(f);
Comment thread tests/test_cli_commands.c
{
char path[256];
snprintf(path, sizeof(path), "%s/bad_header.csv", CLI_TEST_DIR);
FILE *f = fopen(path, "w");
@SoundMatt SoundMatt merged commit cc1ec2d into main Jun 14, 2026
7 of 9 checks passed
@SoundMatt SoundMatt deleted the fix/comp-req-fix-parity branch June 14, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants