git -C '.' status --short --branchgit -C '.' log --oneline -5git -C '.' remote -vGet-ChildItem '.' -Recurse -File | Where-Object FullName -notmatch '\\.git\\' | Group-Object Extension | Sort-Object Count -Descending | Select-Object -First 10 Name,CountGet-ChildItem '.' -File | Where-Object Name -in 'pyproject.toml','setup.py','setup.cfg','requirements.txt','package.json','Cargo.toml','go.mod','composer.json' | Select-Object NameGet-Content './pyproject.toml'Get-ChildItem '.' -File | Where-Object Name -in 'pytest.ini','tox.ini','ruff.toml','.ruff.toml','Makefile','noxfile.py' | Select-Object Namepython --versionGet-ChildItem '.' -Recurse -File | Where-Object FullName -notmatch '\\.git\\' | Sort-Object Length -Descending | Select-Object -First 10 FullName,LengthGet-ChildItem '.' -Recurse -File -Include *.py | Select-String -Pattern 'TODO|FIXME' | Measure-Object | Select-Object Count
…さらに Linux (10) と macOS (10) では書き方が異なります
Linux
git status --short --branchgit log --oneline -5git remote -vfind . -type f -not -path './.git/*' | sed -n 's/.*\.//p' | sort | uniq -c | sort -rn | headls pyproject.toml setup.py setup.cfg requirements.txt package.json Cargo.toml go.mod 2>/dev/nullcat pyproject.tomlls pytest.ini tox.ini ruff.toml .ruff.toml Makefile noxfile.py 2>/dev/nullpython3 --versionfind . -type f -not -path './.git/*' -printf '%s %p\n' | sort -rn | headgrep -rIn --include='*.py' -E 'TODO|FIXME' . | wc -l
macOS
git status --short --branchgit log --oneline -5git remote -vfind . -type f -not -path './.git/*' | sed -n 's/.*\.//p' | sort | uniq -c | sort -rn | headls pyproject.toml setup.py setup.cfg requirements.txt package.json Cargo.toml go.mod 2>/dev/nullcat pyproject.tomlls pytest.ini tox.ini ruff.toml .ruff.toml Makefile noxfile.py 2>/dev/nullpython3 --versionfind . -type f -not -path './.git/*' -exec stat -f '%z %N' {} + | sort -rn | headgrep -rIn --include='*.py' -E 'TODO|FIXME' . | wc -l
10 個の断片を、最初の編集前につなぎ合わせる必要があります。
qzx diagnoseProject .- 技術スタック
- 依存関係
- 環境
- テストと lint
- Git の状態
- ソース解析
- 大きなファイル
- 検出事項
1.3× 高速。 検出事項と次に実行すべきチェックをまとめた1つの概要。