feat(formatter): enforce implementation code snippet section in wiki artifacts

This commit is contained in:
g1nation
2026-05-04 15:58:47 +09:00
parent a74c881375
commit 1395bbcdae
25 changed files with 108 additions and 42 deletions
+3 -1
View File
@@ -63,12 +63,14 @@ export class QualityScorer {
// 3. 밀도/정보량 기반 점수 (최대 30점)
// 코드 블록이나 구체적 링크가 있으면 가산점
if (data.includes('```')) score += 15;
if (data.includes('[[') || data.includes('http')) score += 15;
if (data.includes('## 💻 실전 구현') || data.includes('Implementation')) score += 10;
if (data.includes('[[') || data.includes('http')) score += 5;
// 감점 요소: Placeholder 나 Empty 상태
if (data.includes('[Placeholder]') || data.includes('TODO')) {
score -= 20;
}
return Math.max(0, Math.min(100, score));
}