Skip to content

Count a DTD's .mod modules as the schema project's - #380

Open
leftibot wants to merge 1 commit into
cpp-best-practices:mainfrom
leftibot:dtd-modules
Open

leftibot wants to merge 1 commit into
cpp-best-practices:mainfrom
leftibot:dtd-modules

Conversation

@leftibot

Copy link
Copy Markdown
Collaborator

docbook's DTD includes six modules of declarations (dbpoolx.mod, dbhierx.mod, …). Its .dtd and .ent files count for its XML schemas, but the .mod files were listed as an unrecognised suffix. This was left over from #377.

.mod joins .rnc, .dtd and .ent as an ambiguous suffix of the XML schemas, counted only once a project's schemas are recognised. A .mod is also a compiled Fortran module (or Modula-2), so alone it makes no schema project. A test pins that: a .mod beside Fortran sources adds no format.

Corpus

Compared against main's recording, only docbook changes: .mod leaves its unrecognised suffixes. No status changes.

Gates

pytest, ruff, ruff format, mypy, lizard, coverage, jscpd and strict self-validation: all pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

docbook's DTD includes modules of declarations (`dbpoolx.mod`, `dbhierx.mod`, and four more).
Its `.dtd` and `.ent` files count for its schemas, but these six were listed as an
unrecognised suffix.

`.mod` joins `.rnc`, `.dtd` and `.ent` as an ambiguous suffix of the XML schemas, counted only
once a project's schemas are recognised. A `.mod` is also a compiled Fortran module (or
Modula-2), so alone it makes no schema project.

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

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.50%. Comparing base (79c1e97) to head (707d28b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #380   +/-   ##
=======================================
  Coverage   99.50%   99.50%           
=======================================
  Files         320      320           
  Lines       21149    21149           
  Branches     2540     2540           
=======================================
  Hits        21045    21045           
  Misses        104      104           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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