A flag before a path hides the path from the reach check
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
Research direction
Start with _given, _read_paths and _missed in facts/tools.py, then inspect how commands are represented in policy/inert_commands.toml. Reproduce the listed commands and their plain forms with small fixtures. Done means each flagged command is treated as a no run with the path named in the reason, while plain forms still behave as before.
Written by the indexing model from the issue text.
Description
Problem
#499 made a run on a path that doesn't exist, /dev/null or a folder with no files of the unit's languages earn nothing. That works only when the path comes right after the tool. _given and _read_paths in facts/tools.py take the word after any bare option as that option's value, so a flag in front of the path hides it. All of these are still credited:
shfmt -d /dev/null,shellcheck -x /dev/nullfprettify --diff empty/ruff check --fix nothing/,mypy --strict nothing/pytest --cov-branch gone/
Expected
- A per-tool table in
policy/inert_commands.tomlof the options that take a value. Every other option is a flag, so the next word is a path. _given,_read_pathsand_misseduse the table.
Done when
Each command above is no run, with the path named in the reason, and the plain forms still behave as today.
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
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cpp-best-practices/project_validator
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
cpp-best-practices/project_validator#609 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
cpp-best-practices/project_validator#449 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 56/100
cpp-best-practices/project_validator#622 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
cpp-best-practices/project_validator#621 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
cpp-best-practices/project_validator#619 ·
Maintainers usually reply within 1 day
All issues in cpp-best-practices/project_validator
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
fossasia/eventyay-exhibition#465 · 3 comments · 1 reaction ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area/webapp comp/desktop P2 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#163341 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
smart-village-solutions/smart-speech-flow#765 ·
Maintainers usually reply within 1 day
-
bot-triaged module: bfloat16 module: cuda module: half module: numerical-stability triage review
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day