Skip to content

Scan a cvs, Cvs or _DARCS folder, which CVS and darcs never write [patch] - #213

Merged
matt-edmondson merged 1 commit into
mainfrom
fix-vcs-skip-case
Nov 10, 2026
Merged

matt-edmondson merged 1 commit into
mainfrom
fix-vcs-skip-case

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Fixes #211

What changed

FileScanner skipped any directory named CVS or _darcs ignoring case, so a user's own cvs folder (receipts, say), or a Cvs or _DARCS folder, was silently left out of the scan. CVS only ever writes CVS and darcs only _darcs, so those two names now match case-sensitively, in their own set. The dot-prefixed names (.git, .svn, .hg, .bzr) still ignore case, as before.

Tests

  • TheScanReadsAUserFolderNamedLikeCvsOrDarcsInAnotherCase (cvs, Cvs, cVS, _DARCS, _Darcs): the scan finds all three files.
  • ScanReportsTheCopiesInALowercaseCvsFolder: the issue's repro, where Scan reports Found 3 file(s). and all three copies.
  • The existing TheScanSkipsVersionControlMetadataDirectories rows for CVS and _darcs still pass.

All 6 new cases fail with the fix reverted. The full suite passes: 151 passed, 3 skipped.


Generated by Claude Code

…tch]

CVS only ever names its metadata folder CVS and darcs only _darcs, so
match those two names case-sensitively. A user's own cvs folder of
receipts, or a Cvs or _DARCS folder, was silently left out of the scan.
The dot-prefixed names (.git, .svn, .hg, .bzr) still ignore case.

Fixes #211

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017vfJW5UxX43LaxrXmD5Bhq
@sonarqubecloud

sonarqubecloud Bot commented Nov 8, 2026

Copy link
Copy Markdown

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.

A user folder named cvs, Cvs or _DARCS is silently left out of the scan: the VCS skip list ignores case

2 participants