@aiready/consistency 0.6.7 → 0.6.8

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.8 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
12
+ CJS dist/index.js 47.29 KB
13
+ CJS dist/cli.js 46.58 KB
14
+ CJS ⚡️ Build success in 99ms
15
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
16
+ ESM dist/index.mjs 9.40 KB
17
+ ESM dist/chunk-HPG7P6PD.mjs 36.87 KB
18
+ ESM ⚡️ Build success in 99ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 1008ms
20
+ DTS ⚡️ Build success in 1083ms
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,17 +1,12 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.6.7 test /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.6.8 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
13
- · should detect snake_case in TypeScript files
14
- · should detect unclear boolean names
9
+ [?25l · should detect unclear boolean names
15
10
  · should allow common abbreviations
16
11
  · should NOT flag multi-line arrow function parameters (Phase 3)
17
12
  · should NOT flag short-lived comparison variables (Phase 3)
@@ -26,7 +21,22 @@
26
21
  · should generate relevant recommendations
27
22
  · should suggest standardizing error handling
28
23
  · should suggest using async/await consistently
29
- [?25l[?25l[?25l[?25l[?25l[?25l[?25l ✓ src/__tests__/analyzer.test.ts (18)
24
+ [?25l[?25l[?25l[?25l[?25l[?25l[?25l ✓ should detect unclear boolean names
25
+ ✓ should allow common abbreviations
26
+ ✓ should NOT flag multi-line arrow function parameters (Phase 3)
27
+ ✓ should NOT flag short-lived comparison variables (Phase 3)
28
+ ✓ analyzePatterns (3)
29
+ ✓ should detect mixed error handling
30
+ ✓ should detect mixed async patterns
31
+ ✓ should detect mixed import styles
32
+ ✓ consistency scoring (2)
33
+ ✓ should calculate consistency score correctly
34
+ ✓ should weight critical issues more than info
35
+ ❯ recommendations (3)
36
+ ⠙ should generate relevant recommendations
37
+ · should suggest standardizing error handling
38
+ · should suggest using async/await consistently
39
+  ✓ src/__tests__/analyzer.test.ts (18)
30
40
  ✓ analyzeConsistency (2)
31
41
  ✓ should analyze naming issues
32
42
  ✓ should detect minimum severity filtering
@@ -53,7 +63,7 @@
53
63
 
54
64
   Test Files  1 passed (1)
55
65
   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)
66
+  Start at  20:58:11
67
+  Duration  769ms (transform 126ms, setup 0ms, collect 331ms, tests 135ms, environment 0ms, prepare 55ms)
58
68
 
59
69
  [?25h[?25h