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× 더 빠름. 발견 사항과 다음에 실행할 점검을 담은 하나의 브리핑.