Skip to content

fix(zones): exclude all-test flat directories from scoring#631

Open
FrankSpitulski wants to merge 1 commit into
peteromallet:mainfrom
FrankSpitulski:fix/test-zone-flat-directories
Open

fix(zones): exclude all-test flat directories from scoring#631
FrankSpitulski wants to merge 1 commit into
peteromallet:mainfrom
FrankSpitulski:fix/test-zone-flat-directories

Conversation

@FrankSpitulski

Copy link
Copy Markdown

Problem

The flat_dirs detector emits directory paths, but issue zone stamping looked those paths up in a file-only FileZoneMap. A directory containing 29 test-zone files therefore defaulted to production and lowered Code quality from 100 to 86.

Fix

Add a directory-aware zone lookup that inherits a common descendant zone while conservatively keeping mixed or empty directories as production. Use it only for flat_dirs issue stamping, so the advisory remains visible but test-only directories do not affect scoring.

Validation

  • 99 focused tests passed
  • Ruff format passed
  • Ruff lint passed with the upstream pre-existing UP042 exclusion
  • Live scan of the dsx-mcp functional harness retained flat_dirs::. as a test-zone advisory with zero failures and Code quality 100

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