위키를 표준 AI WIKI 플랫폼 구조로 정리
- 표준 원본(_____AI_WIKI_Platform_std 38f17d7)을 new_project.py --update 방식으로 적용: CLAUDE.md, PROJECT.md, .claude/, .obsidian/app.json, tools/, assets/, raw/ 골격, wiki/00·02~07·09·99 표준 문서 - 프로젝트 고유 문서는 wiki/10_프로젝트/ 에 둠 (표준 갱신 때 덮어쓰지 않도록) - 01_구성_운영환경.md (옛 wiki/00 홈.md) - 02_작업현황.md (완료·남은 일) - wiki/01_사용자지시: 20261103 위키 정리 지시 기록 - .obsidian: webui/ comfyui/ _claude/ jjollamamanager/ 검색 제외 - .gitignore/.gitattributes에 표준 규칙 합침 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HnDmXvY8ekNA8cQwBmcsUE
This commit is contained in:
13
tools/check_lines.py
Normal file
13
tools/check_lines.py
Normal file
@@ -0,0 +1,13 @@
|
||||
"""소스 줄 수 검사: 700줄 초과(오류), 400줄 초과(경고) 파일을 출력한다.
|
||||
사용: python tools/check_lines.py <폴더>"""
|
||||
import sys, pathlib
|
||||
EXT = {".py",".kt",".java",".swift",".dart",".c",".cc",".cpp",".h",".hpp",".rs",".cs",".js",".ts",".tsx",".go",".m",".mm"}
|
||||
root = pathlib.Path(sys.argv[1] if len(sys.argv) > 1 else "src")
|
||||
bad = 0
|
||||
for f in sorted(root.rglob("*")):
|
||||
if f.suffix.lower() in EXT and f.is_file():
|
||||
n = sum(1 for _ in f.open(encoding="utf-8", errors="ignore"))
|
||||
if n > 700: print(f"[오류 {n}줄] {f}"); bad += 1
|
||||
elif n > 400: print(f"[경고 {n}줄] {f}")
|
||||
print("완료" if bad == 0 else f"700줄 초과 {bad}개 — 분리 필요")
|
||||
sys.exit(1 if bad else 0)
|
||||
Reference in New Issue
Block a user