@aiready/consistency 0.8.30 → 0.8.32

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.30 build /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.8.32 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
- ESM dist/index.mjs 12.92 KB
13
- ESM dist/cli.mjs 8.76 KB
14
- ESM dist/chunk-YEHXYHGY.mjs 40.95 KB
15
- ESM ⚡️ Build success in 168ms
16
- CJS dist/cli.js 50.90 KB
17
- CJS dist/index.js 55.56 KB
18
- CJS ⚡️ Build success in 205ms
12
+ ESM dist/cli.mjs 8.83 KB
13
+ ESM dist/chunk-J5IFYDVU.mjs 41.75 KB
14
+ ESM dist/index.mjs 13.46 KB
15
+ ESM ⚡️ Build success in 99ms
16
+ CJS dist/index.js 56.89 KB
17
+ CJS dist/cli.js 51.74 KB
18
+ CJS ⚡️ Build success in 100ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 9020ms
20
+ DTS ⚡️ Build success in 5038ms
21
21
  DTS dist/cli.d.ts 20.00 B
22
22
  DTS dist/index.d.ts 3.41 KB
23
23
  DTS dist/cli.d.mts 20.00 B
@@ -1,24 +1,24 @@
1
1
 
2
2
  
3
- > @aiready/consistency@0.8.30 test /Users/pengcao/projects/aiready/packages/consistency
3
+ > @aiready/consistency@0.8.32 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
9
  ✓ dist/__tests__/scoring.test.js (8 tests) 3ms
10
- ✓ src/__tests__/scoring.test.ts (8 tests) 7ms
11
- ✓ src/__tests__/language-filter.test.ts (3 tests) 5ms
12
- ✓ dist/__tests__/language-filter.test.js (3 tests) 4ms
13
- ✓ dist/__tests__/analyzer.test.js (18 tests) 1061ms
14
- ✓ should analyze naming issues  494ms
15
- ✓ should detect minimum severity filtering  372ms
16
- ✓ src/__tests__/analyzer.test.ts (18 tests) 1009ms
17
- ✓ should analyze naming issues  673ms
10
+ ✓ dist/__tests__/language-filter.test.js (3 tests) 5ms
11
+ ✓ src/__tests__/language-filter.test.ts (3 tests) 7ms
12
+ ✓ src/__tests__/scoring.test.ts (8 tests) 5ms
13
+ ✓ dist/__tests__/analyzer.test.js (18 tests) 912ms
14
+ ✓ should analyze naming issues  342ms
15
+ ✓ should detect minimum severity filtering  455ms
16
+ ✓ src/__tests__/analyzer.test.ts (18 tests) 728ms
17
+ ✓ should analyze naming issues  379ms
18
18
 
19
19
   Test Files  6 passed (6)
20
20
   Tests  58 passed (58)
21
-  Start at  13:04:30
22
-  Duration  4.31s (transform 3.85s, setup 0ms, import 13.17s, tests 2.09s, environment 4ms)
21
+  Start at  22:19:18
22
+  Duration  2.58s (transform 1.87s, setup 0ms, import 6.52s, tests 1.66s, environment 0ms)
23
23
 
24
24
  [?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
  }