Path reach for jscpd, and for prettier given only docs

Open
#577 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
tooling

Research direction

Start with tools/jscpd.py and trace how tool paths are checked for reach; then inspect the formatter reach logic and the tests around ruff check LICENSE.md mentioned in #499. Add coverage for jscpd paths and formatters given only non-code files such as LICENSE.md or README.md. Done means both cases earn nothing and the reason names the path.

Written by the indexing model from the issue text.

Description

Problem

  • jscpd … README.md and jscpd … nothing/ both pass copy-paste-detection: jscpd's paths are never judged.
  • prettier --check LICENSE.md passes code-formatting for a TypeScript project ("CI enforces the prettier formatting"). Markdown isn't a recorded source language, so the path isn't judged. #499 lists this as refused, but its test only covers ruff check LICENSE.md.

Expected

  • jscpd's paths go through the same reach check as other tools (tools/jscpd.py).
  • A formatter given only files that aren't code of the unit (LICENSE.md, README.md) reaches no unit.

Done when

Both cases earn nothing, with the path named in the reason.

Split from #476. Checked against main at 4b4dbb6c on 2026-12-03: the cases above were reproduced with small fixtures or found in the code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

Dominant language
Python
Stars
4
Forks
1
Avg merge
6h 31m
Merged PRs (30d)
238

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cpp-best-practices/project_validator

All issues in cpp-best-practices/project_validator

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.