Skip to content

Fix CMD directory quoting in static completeness checks - #1201

Open
rng1995 wants to merge 1 commit into
mainfrom
naren/fix-cmd-if-exist-quoting
Open

rng1995 wants to merge 1 commit into
mainfrom
naren/fix-cmd-if-exist-quoting

Conversation

@rng1995

@rng1995 rng1995 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Recognize a standalone quoted IF [NOT] EXIST path operand ending in a backslash in .bat and .cmd files.
  • Preserve source offsets and raw shell diagnostics, including when a CMD-looking line appears inside an embedded shell program.
  • Require the operand to exist in the original source before applying the same handling in a derived view.

Verification

  • The original CRLF .bat and .cmd fixtures reported partial coverage and exited 1 with --fail-on-incomplete on the base branch. The patched CLI reports complete coverage, zero findings, and exit 0 for the same fixtures.
  • The 10 focused regression tests pass. They cover LF and CRLF, neighboring findings and diagnostics, embedded shell programs, and derived views.
  • make lint format-check and git diff --check pass.

Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>

This branch has not been deployed

No deployments
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.

1 participant