@aiready/consistency 0.6.7 → 0.6.10

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.7 build /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.6.10 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/index.js 46.99 KB
13
- CJS dist/cli.js 45.90 KB
14
- CJS ⚡️ Build success in 55ms
15
- ESM dist/cli.mjs 8.55 KB
16
- ESM dist/index.mjs 9.73 KB
17
- ESM dist/chunk-WTBDNCEN.mjs 36.20 KB
18
- ESM ⚡️ Build success in 55ms
12
+ ESM dist/cli.mjs 8.62 KB
13
+ ESM dist/chunk-HPG7P6PD.mjs 36.87 KB
14
+ ESM dist/index.mjs 9.40 KB
15
+ ESM ⚡️ Build success in 214ms
16
+ CJS dist/index.js 47.29 KB
17
+ CJS dist/cli.js 46.65 KB
18
+ CJS ⚡️ Build success in 216ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 1008ms
20
+ DTS ⚡️ Build success in 2193ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
22
  DTS dist/index.d.ts 2.77 KB
23
23
  DTS dist/cli.d.mts 20.00 B
@@ -1,15 +1,12 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.6.7 test /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.6.10 test /Users/pengcao/projects/aiready/packages/consistency
4
4
  > vitest run
5
5
 
6
6
 
7
7
   RUN  v2.1.9 /Users/pengcao/projects/aiready/packages/consistency
8
8
 
9
- [?25l · analyzeNaming (8)
10
- · should detect single letter variables
11
- · should NOT flag acceptable abbreviations
12
- · should NOT flag common short English words
9
+ [?25l · should NOT flag common short English words
13
10
  · should detect snake_case in TypeScript files
14
11
  · should detect unclear boolean names
15
12
  · should allow common abbreviations
@@ -26,7 +23,63 @@
26
23
  · should generate relevant recommendations
27
24
  · should suggest standardizing error handling
28
25
  · should suggest using async/await consistently
29
- [?25l[?25l[?25l[?25l[?25l[?25l[?25l ✓ src/__tests__/analyzer.test.ts (18)
26
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l[?25l ✓ should NOT flag common short English words
27
+ ✓ should detect snake_case in TypeScript files
28
+ ✓ should detect unclear boolean names
29
+ ✓ should allow common abbreviations
30
+ ✓ should NOT flag multi-line arrow function parameters (Phase 3)
31
+ ✓ should NOT flag short-lived comparison variables (Phase 3)
32
+ ✓ analyzePatterns (3)
33
+ ✓ should detect mixed error handling
34
+ ✓ should detect mixed async patterns
35
+ ✓ should detect mixed import styles
36
+ ✓ consistency scoring (2)
37
+ ✓ should calculate consistency score correctly
38
+ ✓ should weight critical issues more than info
39
+ ❯ recommendations (3)
40
+ ⠙ should generate relevant recommendations
41
+ · should suggest standardizing error handling
42
+ · should suggest using async/await consistently
43
+  ✓ src/__tests__/analyzer.test.ts (18)
44
+ ✓ analyzeConsistency (2)
45
+ ✓ should analyze naming issues
46
+ ✓ should detect minimum severity filtering
47
+ ✓ analyzeNaming (8)
48
+ ✓ should detect single letter variables
49
+ ✓ should NOT flag acceptable abbreviations
50
+ ✓ should NOT flag common short English words
51
+ ✓ should detect snake_case in TypeScript files
52
+ ✓ should detect unclear boolean names
53
+ ✓ should allow common abbreviations
54
+ ✓ should NOT flag multi-line arrow function parameters (Phase 3)
55
+ ✓ should NOT flag short-lived comparison variables (Phase 3)
56
+ ✓ analyzePatterns (3)
57
+ ✓ should detect mixed error handling
58
+ ✓ should detect mixed async patterns
59
+ ✓ should detect mixed import styles
60
+ ✓ consistency scoring (2)
61
+ ✓ should calculate consistency score correctly
62
+ ✓ should weight critical issues more than info
63
+ ✓ recommendations (3)
64
+ ✓ should generate relevant recommendations
65
+ ✓ should suggest standardizing error handling
66
+ ✓ should suggest using async/await consistently
67
+
68
+  Test Files  1 passed (1)
69
+  Tests  18 passed (18)
70
+  Start at  19:03:23
71
+  Duration  2.62s (transform 200ms, setup 0ms, collect 845ms, tests 224ms, environment 0ms, prepare 205ms)
72
+
73
+ [?25h[?25h
74
+ ✓ should detect mixed import styles
75
+ ✓ consistency scoring (2)
76
+ ✓ should calculate consistency score correctly
77
+ ✓ should weight critical issues more than info
78
+ ✓ recommendations (3)
79
+ ✓ should generate relevant recommendations
80
+ ✓ should suggest standardizing error handling
81
+ ✓ should suggest using async/await consistently
82
+  ✓ src/__tests__/analyzer.test.ts (18)
30
83
  ✓ analyzeConsistency (2)
31
84
  ✓ should analyze naming issues
32
85
  ✓ should detect minimum severity filtering
@@ -53,7 +106,7 @@
53
106
 
54
107
   Test Files  1 passed (1)
55
108
   Tests  18 passed (18)
56
-  Start at  18:32:20
57
-  Duration  616ms (transform 97ms, setup 0ms, collect 259ms, tests 138ms, environment 0ms, prepare 47ms)
109
+  Start at  19:03:23
110
+  Duration  2.34s (transform 239ms, setup 0ms, collect 994ms, tests 252ms, environment 0ms, prepare 141ms)
58
111
 
59
112
  [?25h[?25h