[chore] solution,admin,ontology: 코드 주석을 한 줄로 — 히스토리 주석 삭제

여러 줄 주석이 설명보다 경위(예전·실측·지적)를 적고 있어 읽는 사람이 결론을 찾기 어려웠다.

- ts·tsx·js·mjs·css·py 478개: 여러 줄 주석은 첫 문장 한 줄로, 과거형·날짜 문장은 삭제
- 주석 위치는 TypeScript 파서·파이썬 tokenize/ast 로 찾는다 — 문자열 안의 # · /* 는 건드리지 않는다
- eslint·ts·noqa·type: ignore 같은 지시 주석은 그대로 둔다

파이썬 275개 정리 전후 AST 동일, TS 298개 주석 뺀 토큰 동일(빈 JSX 주석 10곳만 차이).
site·frontend·admin tsc, site vitest 105 passed

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 5.5 committed 2026-09-28 16:05:19 +09:00
1 parent c6908629f3
commit 11d30bb3d1
479 files changed
+3337 -13091

No files matched your search

+3 -4
View File
@@ -30,14 +30,14 @@ def test_ai_for_web_아래에_사이트와_공용산출물을_업로드(tmp_path
(tmp_path / "assets" / "index-abc.js").write_text("console.log(1)")
(tmp_path / "fonts").mkdir()
(tmp_path / "fonts" / "Pretendard.woff2").write_bytes(b"font")
# ★ 오리진 루트 파일 — 크롤러가 robots.txt 를 읽는 유일한 자리다(RFC 9309).
# 오리진 루트 파일 — 크롤러가 robots.txt 를 읽는 유일한 자리다(RFC 9309).
(tmp_path / "robots.txt").write_text("User-agent: *\nAllow: /\n")
(tmp_path / "sitemap.xml").write_text("<sitemapindex/>")
site_dir = tmp_path / "s" / "butter"
(site_dir / "about").mkdir(parents=True)
(site_dir / "index.html").write_text("<h1>Butter</h1>")
(site_dir / "about" / "index.html").write_text("<h1>About</h1>")
# 다른 사업장의 발행본. 이번 발행 대상이 아니므로 올라가면 안 된다.
# 다른 사업장의 발행본.
(tmp_path / "s" / "joy").mkdir(parents=True)
(tmp_path / "s" / "joy" / "index.html").write_text("<h1>Joy</h1>")
@@ -77,8 +77,7 @@ def test_ai_for_web_아래에_사이트와_공용산출물을_업로드(tmp_path
def test_루트_robots_와_사이트맵은_짧게_캐시된다():
# 해시가 박힌 번들만 영구 캐시다. robots·사이트맵이 길게 캐시되면
# 새 사업장이 사이트맵 인덱스에 들어가도 크롤러가 옛 파일을 계속 본다.
# 해시가 박힌 번들만 영구 캐시다.
assert "immutable" in azure_static._cache_control(Path("assets/index-abc.js"))
assert azure_static._cache_control(Path("robots.txt")) == "public, max-age=60, must-revalidate"
assert azure_static._cache_control(Path("sitemap.xml")) == "public, max-age=60, must-revalidate"