A flag before a path hides the path from the reach check

オープン
#574 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
cli, tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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/null
  • fprettify --diff empty/
  • ruff check --fix nothing/, mypy --strict nothing/
  • pytest --cov-branch gone/

Expected

  • A per-tool table in policy/inert_commands.toml of the options that take a value. Every other option is a flag, so the next word is a path.
  • _given, _read_paths and _missed use 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

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

主要言語
Python
スター
4
フォーク
1
平均マージ
6時間 31分
マージ済み PR(30日)
238

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cpp-best-practices/project_validator のほかの issue

cpp-best-practices/project_validator の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。