Merge pull request 'fix(entropy): _iter_files .git 제외 — total_file_count 2298→1645, gate=PASS' (#42) from feature/fix-entropy-git-exclude into main
This commit is contained in:
@@ -16,7 +16,7 @@ forbidden_responsibilities:
|
|||||||
- risk_score
|
- risk_score
|
||||||
migration_plan:
|
migration_plan:
|
||||||
status: IN_PROGRESS
|
status: IN_PROGRESS
|
||||||
note: Phase 1~4 완료. 사용자 GAS 검증(runDataFeed) 후 status: DONE으로 전환 예정.
|
note: "Phase 1~4 완료. 사용자 GAS 검증(runDataFeed) 후 migration_plan status=DONE으로 전환 예정."
|
||||||
inventory_result:
|
inventory_result:
|
||||||
tool: tools/audit_gas_thin_adapter_v1.py
|
tool: tools/audit_gas_thin_adapter_v1.py
|
||||||
output: Temp/gas_business_logic_audit_v1.json
|
output: Temp/gas_business_logic_audit_v1.json
|
||||||
|
|||||||
@@ -14,8 +14,14 @@ import yaml
|
|||||||
ROOT = Path(__file__).resolve().parents[1]
|
ROOT = Path(__file__).resolve().parents[1]
|
||||||
|
|
||||||
|
|
||||||
|
_EXCLUDE_DIRS = {".git", "node_modules", "__pycache__", ".tox", ".venv", "venv"}
|
||||||
|
|
||||||
|
|
||||||
def _iter_files(root: Path) -> list[Path]:
|
def _iter_files(root: Path) -> list[Path]:
|
||||||
return [p for p in root.rglob("*") if p.is_file()]
|
return [
|
||||||
|
p for p in root.rglob("*")
|
||||||
|
if p.is_file() and not any(part in _EXCLUDE_DIRS for part in p.relative_to(root).parts)
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def _sha256_file(path: Path) -> str:
|
def _sha256_file(path: Path) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user