@aiready/consistency 0.6.1 → 0.6.2

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.6.1 build /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.6.2 build /Users/pengcao/projects/aiready/packages/consistency
4
4
  > tsup src/index.ts src/cli.ts --format cjs,esm --dts
5
5
 
6
6
  CLI Building entry: src/cli.ts, src/index.ts
@@ -9,15 +9,15 @@
9
9
  CLI Target: es2020
10
10
  CJS Build start
11
11
  ESM Build start
12
- CJS dist/cli.js 44.61 KB
13
- CJS dist/index.js 49.65 KB
14
- CJS ⚡️ Build success in 57ms
15
- ESM dist/cli.mjs 8.54 KB
16
- ESM dist/chunk-LD3CHHU2.mjs 34.36 KB
12
+ CJS dist/index.js 50.15 KB
13
+ CJS dist/cli.js 45.11 KB
14
+ CJS ⚡️ Build success in 61ms
15
+ ESM dist/chunk-ON73WHHU.mjs 34.85 KB
16
+ ESM dist/cli.mjs 8.55 KB
17
17
  ESM dist/index.mjs 14.04 KB
18
- ESM ⚡️ Build success in 57ms
18
+ ESM ⚡️ Build success in 62ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 1045ms
20
+ DTS ⚡️ Build success in 1102ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
22
  DTS dist/index.d.ts 2.73 KB
23
23
  DTS dist/cli.d.mts 20.00 B
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.6.1 test /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.6.2 test /Users/pengcao/projects/aiready/packages/consistency
4
4
  > vitest run
5
5
 
6
6
 
@@ -48,6 +48,27 @@
48
48
  · should generate relevant recommendations
49
49
  · should suggest standardizing error handling
50
50
  · should suggest using async/await consistently
51
+ [?25l ⠹ should detect minimum severity filtering
52
+ · analyzeNaming (8)
53
+ · should detect single letter variables
54
+ · should NOT flag acceptable abbreviations
55
+ · should NOT flag common short English words
56
+ · should detect snake_case in TypeScript files
57
+ · should detect unclear boolean names
58
+ · should allow common abbreviations
59
+ · should NOT flag multi-line arrow function parameters (Phase 3)
60
+ · should NOT flag short-lived comparison variables (Phase 3)
61
+ · analyzePatterns (3)
62
+ · should detect mixed error handling
63
+ · should detect mixed async patterns
64
+ · should detect mixed import styles
65
+ · consistency scoring (2)
66
+ · should calculate consistency score correctly
67
+ · should weight critical issues more than info
68
+ · recommendations (3)
69
+ · should generate relevant recommendations
70
+ · should suggest standardizing error handling
71
+ · should suggest using async/await consistently
51
72
  [?25l ✓ should detect minimum severity filtering
52
73
  ✓ analyzeNaming (8)
53
74
  ✓ should detect single letter variables
@@ -69,27 +90,6 @@
69
90
  ⠙ should generate relevant recommendations
70
91
  · should suggest standardizing error handling
71
92
  · should suggest using async/await consistently
72
- [?25l ✓ should detect minimum severity filtering
73
- ✓ analyzeNaming (8)
74
- ✓ should detect single letter variables
75
- ✓ should NOT flag acceptable abbreviations
76
- ✓ should NOT flag common short English words
77
- ✓ should detect snake_case in TypeScript files
78
- ✓ should detect unclear boolean names
79
- ✓ should allow common abbreviations
80
- ✓ should NOT flag multi-line arrow function parameters (Phase 3)
81
- ✓ should NOT flag short-lived comparison variables (Phase 3)
82
- ✓ analyzePatterns (3)
83
- ✓ should detect mixed error handling
84
- ✓ should detect mixed async patterns
85
- ✓ should detect mixed import styles
86
- ✓ consistency scoring (2)
87
- ✓ should calculate consistency score correctly
88
- ✓ should weight critical issues more than info
89
- ✓ recommendations (3)
90
- ✓ should generate relevant recommendations
91
- ✓ should suggest standardizing error handling
92
- ✓ should suggest using async/await consistently
93
93
   ✓ src/__tests__/analyzer.test.ts (18)
94
94
  ✓ analyzeConsistency (2)
95
95
  ✓ should analyze naming issues
@@ -117,7 +117,7 @@
117
117
 
118
118
   Test Files  1 passed (1)
119
119
   Tests  18 passed (18)
120
-  Start at  21:43:25
121
-  Duration  653ms (transform 84ms, setup 0ms, collect 250ms, tests 141ms, environment 0ms, prepare 43ms)
120
+  Start at  13:23:58
121
+  Duration  745ms (transform 95ms, setup 0ms, collect 276ms, tests 155ms, environment 0ms, prepare 56ms)
122
122
 
123
123
  [?25h[?25h