@aiready/consistency 0.5.0 → 0.6.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.
@@ -0,0 +1,24 @@
1
+
2
+ 
3
+ > @aiready/consistency@0.6.1 build /Users/pengcao/projects/aiready/packages/consistency
4
+ > tsup src/index.ts src/cli.ts --format cjs,esm --dts
5
+
6
+ CLI Building entry: src/cli.ts, src/index.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.5.1
9
+ CLI Target: es2020
10
+ CJS Build start
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
17
+ ESM dist/index.mjs 14.04 KB
18
+ ESM ⚡️ Build success in 57ms
19
+ DTS Build start
20
+ DTS ⚡️ Build success in 1045ms
21
+ DTS dist/cli.d.ts 20.00 B
22
+ DTS dist/index.d.ts 2.73 KB
23
+ DTS dist/cli.d.mts 20.00 B
24
+ DTS dist/index.d.mts 2.73 KB
@@ -0,0 +1,123 @@
1
+
2
+ 
3
+ > @aiready/consistency@0.6.1 test /Users/pengcao/projects/aiready/packages/consistency
4
+ > vitest run
5
+
6
+
7
+  RUN  v2.1.9 /Users/pengcao/projects/aiready/packages/consistency
8
+
9
+ [?25l · should detect minimum severity filtering
10
+ · analyzeNaming (8)
11
+ · should detect single letter variables
12
+ · should NOT flag acceptable abbreviations
13
+ · should NOT flag common short English words
14
+ · should detect snake_case in TypeScript files
15
+ · should detect unclear boolean names
16
+ · should allow common abbreviations
17
+ · should NOT flag multi-line arrow function parameters (Phase 3)
18
+ · should NOT flag short-lived comparison variables (Phase 3)
19
+ · analyzePatterns (3)
20
+ · should detect mixed error handling
21
+ · should detect mixed async patterns
22
+ · should detect mixed import styles
23
+ · consistency scoring (2)
24
+ · should calculate consistency score correctly
25
+ · should weight critical issues more than info
26
+ · recommendations (3)
27
+ · should generate relevant recommendations
28
+ · should suggest standardizing error handling
29
+ · should suggest using async/await consistently
30
+ [?25l[?25l[?25l[?25l[?25l[?25l ⠙ should detect minimum severity filtering
31
+ · analyzeNaming (8)
32
+ · should detect single letter variables
33
+ · should NOT flag acceptable abbreviations
34
+ · should NOT flag common short English words
35
+ · should detect snake_case in TypeScript files
36
+ · should detect unclear boolean names
37
+ · should allow common abbreviations
38
+ · should NOT flag multi-line arrow function parameters (Phase 3)
39
+ · should NOT flag short-lived comparison variables (Phase 3)
40
+ · analyzePatterns (3)
41
+ · should detect mixed error handling
42
+ · should detect mixed async patterns
43
+ · should detect mixed import styles
44
+ · consistency scoring (2)
45
+ · should calculate consistency score correctly
46
+ · should weight critical issues more than info
47
+ · recommendations (3)
48
+ · should generate relevant recommendations
49
+ · should suggest standardizing error handling
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
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
+  ✓ src/__tests__/analyzer.test.ts (18)
94
+ ✓ analyzeConsistency (2)
95
+ ✓ should analyze naming issues
96
+ ✓ should detect minimum severity filtering
97
+ ✓ analyzeNaming (8)
98
+ ✓ should detect single letter variables
99
+ ✓ should NOT flag acceptable abbreviations
100
+ ✓ should NOT flag common short English words
101
+ ✓ should detect snake_case in TypeScript files
102
+ ✓ should detect unclear boolean names
103
+ ✓ should allow common abbreviations
104
+ ✓ should NOT flag multi-line arrow function parameters (Phase 3)
105
+ ✓ should NOT flag short-lived comparison variables (Phase 3)
106
+ ✓ analyzePatterns (3)
107
+ ✓ should detect mixed error handling
108
+ ✓ should detect mixed async patterns
109
+ ✓ should detect mixed import styles
110
+ ✓ consistency scoring (2)
111
+ ✓ should calculate consistency score correctly
112
+ ✓ should weight critical issues more than info
113
+ ✓ recommendations (3)
114
+ ✓ should generate relevant recommendations
115
+ ✓ should suggest standardizing error handling
116
+ ✓ should suggest using async/await consistently
117
+
118
+  Test Files  1 passed (1)
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)
122
+
123
+ [?25h[?25h