@su-record/vibe 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,7 +28,7 @@ const typeSafety = {
|
|
|
28
28
|
```typescript
|
|
29
29
|
const codeStructure = {
|
|
30
30
|
singleResponsibility: true, // ✅ 단일 책임 원칙
|
|
31
|
-
|
|
31
|
+
functionUnder30Lines: true, // ✅ 함수 30줄 이하 (권장), 50줄 허용
|
|
32
32
|
maxNesting3Levels: true, // ✅ 최대 중첩 3단계
|
|
33
33
|
cyclomaticComplexity: 10, // ✅ 순환 복잡도 ≤ 10
|
|
34
34
|
cognitiveComplexity: 15, // ✅ 인지 복잡도 ≤ 15
|
|
@@ -171,7 +171,7 @@ const bundleOptimization = {
|
|
|
171
171
|
|
|
172
172
|
```
|
|
173
173
|
[ ] 단일 책임 원칙 준수
|
|
174
|
-
[ ] 함수 길이
|
|
174
|
+
[ ] 함수 길이 30줄 이하 유지 (최대 50줄)
|
|
175
175
|
[ ] 중첩 깊이 3단계 이하
|
|
176
176
|
[ ] 매직 넘버 상수화
|
|
177
177
|
[ ] 타입 안전성 확보
|
|
@@ -207,7 +207,7 @@ module.exports = {
|
|
|
207
207
|
rules: {
|
|
208
208
|
'complexity': ['error', 10],
|
|
209
209
|
'max-depth': ['error', 3],
|
|
210
|
-
'max-lines-per-function': ['error',
|
|
210
|
+
'max-lines-per-function': ['error', 50],
|
|
211
211
|
'max-params': ['error', 5],
|
|
212
212
|
'no-magic-numbers': ['warn', { ignore: [0, 1, -1] }],
|
|
213
213
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
@@ -266,7 +266,7 @@ npm run format:check
|
|
|
266
266
|
```
|
|
267
267
|
✅ 요청 범위만 수정했는가?
|
|
268
268
|
✅ any 타입이 없는가?
|
|
269
|
-
✅ 함수가
|
|
269
|
+
✅ 함수가 30줄 이하인가? (최대 50줄)
|
|
270
270
|
✅ 중첩이 3단계 이하인가?
|
|
271
271
|
✅ 에러 처리를 했는가?
|
|
272
272
|
✅ 매직 넘버를 상수화했는가?
|
package/CLAUDE.md
CHANGED
package/README.md
CHANGED
package/commands/vibe.run.md
CHANGED
|
@@ -640,7 +640,7 @@ Phase N+1 Start (IMMEDIATE - exploration already done!)
|
|
|
640
640
|
│ │ 빌드 │ ✅ │ npm run build 성공 │ │
|
|
641
641
|
│ │ 테스트 │ ✅ │ 12/12 통과 │ │
|
|
642
642
|
│ │ 타입 검사 │ ✅ │ 에러 0개 │ │
|
|
643
|
-
│ │ 복잡도 │ ✅ │ 모든 함수 ≤
|
|
643
|
+
│ │ 복잡도 │ ✅ │ 모든 함수 ≤30줄 │ │
|
|
644
644
|
│ │ 보안 │ ✅ │ 취약점 0개 │ │
|
|
645
645
|
│ └─────────────────────────────────────────────────────────┘ │
|
|
646
646
|
│ │
|
package/commands/vibe.verify.md
CHANGED
|
@@ -106,7 +106,7 @@ Then: 로그인 성공 + JWT 토큰 반환
|
|
|
106
106
|
│ │ 빌드 │ ✅ │ 성공 │ │
|
|
107
107
|
│ │ 테스트 │ ✅ │ 12/12 통과 │ │
|
|
108
108
|
│ │ 타입 검사 │ ✅ │ 에러 0개 │ │
|
|
109
|
-
│ │ 복잡도 │ ✅ │ 모든 함수 ≤
|
|
109
|
+
│ │ 복잡도 │ ✅ │ 모든 함수 ≤30줄 │ │
|
|
110
110
|
│ │ 코드 커버리지 │ ⚠️ │ 78% (목표: 80%) │ │
|
|
111
111
|
│ └─────────────────────────────────────────────────────────┘ │
|
|
112
112
|
│ │
|