@aiready/consistency 0.8.31 → 0.8.34

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,5 +1,5 @@
1
- github: ["caopengau"]
1
+ github: ['caopengau']
2
2
  custom:
3
3
  - https://github.com/sponsors/caopengau
4
4
  - https://receiptclaimer.com
5
- - mailto:caopengau@gmail.com
5
+ - mailto:caopengau@gmail.com
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.8.31 build /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.8.34 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,16 +9,16 @@
9
9
  CLI Target: es2020
10
10
  CJS Build start
11
11
  ESM Build start
12
- ESM dist/chunk-YEHXYHGY.mjs 40.95 KB
13
- ESM dist/index.mjs 12.92 KB
14
- ESM dist/cli.mjs 8.76 KB
15
- ESM ⚡️ Build success in 2289ms
16
- CJS dist/cli.js 50.90 KB
17
- CJS dist/index.js 55.56 KB
18
- CJS ⚡️ Build success in 2289ms
12
+ CJS dist/index.js 56.89 KB
13
+ CJS dist/cli.js 51.74 KB
14
+ CJS ⚡️ Build success in 92ms
15
+ ESM dist/cli.mjs 8.83 KB
16
+ ESM dist/chunk-J5IFYDVU.mjs 41.75 KB
17
+ ESM dist/index.mjs 13.46 KB
18
+ ESM ⚡️ Build success in 111ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 82348ms
20
+ DTS ⚡️ Build success in 4360ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
- DTS dist/index.d.ts 3.41 KB
22
+ DTS dist/index.d.ts 3.43 KB
23
23
  DTS dist/cli.d.mts 20.00 B
24
- DTS dist/index.d.mts 3.41 KB
24
+ DTS dist/index.d.mts 3.43 KB
@@ -0,0 +1,5 @@
1
+
2
+ 
3
+ > @aiready/consistency@0.8.32 lint /Users/pengcao/projects/aiready/packages/consistency
4
+ > eslint src
5
+
@@ -1,27 +1,27 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.8.31 test /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.8.34 test /Users/pengcao/projects/aiready/packages/consistency
4
4
  > vitest run
5
5
 
6
6
  [?25l
7
7
   RUN  v4.0.18 /Users/pengcao/projects/aiready/packages/consistency
8
8
 
9
- ✓ dist/__tests__/scoring.test.js (8 tests) 9ms
10
- ✓ dist/__tests__/language-filter.test.js (3 tests) 7ms
11
- ✓ src/__tests__/language-filter.test.ts (3 tests) 6ms
12
- ✓ src/__tests__/scoring.test.ts (8 tests) 3ms
13
- ✓ dist/__tests__/analyzer.test.js (18 tests) 6005ms
14
- ✓ should analyze naming issues  3516ms
15
- ✓ should detect minimum severity filtering  1129ms
16
- ✓ should generate relevant recommendations  1332ms
17
- ✓ src/__tests__/analyzer.test.ts (18 tests) 5904ms
18
- ✓ should analyze naming issues  2949ms
19
- ✓ should detect minimum severity filtering  1546ms
20
- ✓ should generate relevant recommendations  1400ms
9
+ ✓ dist/__tests__/scoring.test.js (8 tests) 17ms
10
+ ✓ src/__tests__/scoring.test.ts (8 tests) 20ms
11
+ ✓ dist/__tests__/language-filter.test.js (3 tests) 14ms
12
+ ✓ src/__tests__/language-filter.test.ts (3 tests) 65ms
13
+ ✓ src/__tests__/analyzer.test.ts (18 tests) 4963ms
14
+ ✓ should analyze naming issues  1922ms
15
+ ✓ should detect minimum severity filtering  1275ms
16
+ ✓ should generate relevant recommendations  1761ms
17
+ ✓ dist/__tests__/analyzer.test.js (18 tests) 5053ms
18
+ ✓ should analyze naming issues  1838ms
19
+ ✓ should detect minimum severity filtering  1767ms
20
+ ✓ should generate relevant recommendations  1288ms
21
21
 
22
22
   Test Files  6 passed (6)
23
23
   Tests  58 passed (58)
24
-  Start at  14:39:20
25
-  Duration  19.55s (transform 18.33s, setup 0ms, import 45.53s, tests 11.93s, environment 6ms)
24
+  Start at  00:56:32
25
+  Duration  13.62s (transform 11.16s, setup 0ms, import 33.40s, tests 10.13s, environment 1ms)
26
26
 
27
27
  [?25h
package/CONTRIBUTING.md CHANGED
@@ -5,6 +5,7 @@ Thank you for your interest in contributing to AIReady Consistency Checker! We w
5
5
  ## 🐛 Reporting Issues
6
6
 
7
7
  Found a bug or have a feature request? [Open an issue](https://github.com/caopengau/aiready-consistency/issues) with:
8
+
8
9
  - Clear description of the problem or feature
9
10
  - Sample code that demonstrates the issue
10
11
  - Expected vs actual behavior
@@ -33,6 +34,7 @@ pnpm test
33
34
  ## 📝 Making Changes
34
35
 
35
36
  1. **Fork the repository** and create a new branch:
37
+
36
38
  ```bash
37
39
  git checkout -b fix/naming-detection
38
40
  # or
@@ -46,15 +48,17 @@ pnpm test
46
48
  - Keep analyzers modular and focused
47
49
 
48
50
  3. **Test your changes**:
51
+
49
52
  ```bash
50
53
  pnpm build
51
54
  pnpm test
52
-
55
+
53
56
  # Test on real projects
54
57
  ./dist/cli.js path/to/test-project
55
58
  ```
56
59
 
57
60
  4. **Commit and push**:
61
+
58
62
  ```bash
59
63
  git add .
60
64
  git commit -m "feat: add camelCase detection for Python"
@@ -92,10 +96,13 @@ src/
92
96
  ### Adding a New Analyzer
93
97
 
94
98
  1. Create `src/analyzers/your-analyzer.ts`:
99
+
95
100
  ```typescript
96
101
  import type { YourIssueType } from '../types';
97
-
98
- export async function analyzeYourThing(files: string[]): Promise<YourIssueType[]> {
102
+
103
+ export async function analyzeYourThing(
104
+ files: string[]
105
+ ): Promise<YourIssueType[]> {
99
106
  // Your detection logic
100
107
  return issues;
101
108
  }