Skip to content

Improve README heading parsing and Python virtualenv detection #8

Description

@ahmetmizrap1232-sys

Two small hygiene gaps are still reproducible on the current codebase:

  • README heading detection can treat headings inside fenced code blocks as real documentation sections. For example, a Python snippet containing # Installation and # Usage can satisfy the README checks even when those sections do not exist in the document.
  • Python virtual environment directories such as .venv/, venv/, and env/ are common local artifacts, but they are not currently reported by the junk file scan when left in the repository.

Expected behavior:

  • Markdown headings inside fenced code blocks should be ignored by README section checks.
  • Common local Python virtual environment directories should be reported as junk unless they are ignored by .gitignore.

Note: CI-oriented exit codes are already implemented: RepoDx returns 0 when no issues are found, 1 when hygiene issues are found, and 2 for an invalid path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions