@aiready/consistency 0.8.32 → 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.
- package/.turbo/turbo-build.log +8 -8
- package/.turbo/turbo-lint.log +5 -0
- package/.turbo/turbo-test.log +15 -12
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +2 -2
- package/src/__tests__/analyzer.test.ts +3 -3
- package/src/analyzers/naming-ast.ts +1 -1
- package/src/analyzers/naming-python.ts +3 -1
- package/src/types.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/consistency@0.8.
|
|
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
|
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
[34mCLI[39m Target: es2020
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m56.89 KB[39m
|
|
13
|
+
[32mCJS[39m [1mdist/cli.js [22m[32m51.74 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 92ms
|
|
12
15
|
[32mESM[39m [1mdist/cli.mjs [22m[32m8.83 KB[39m
|
|
13
16
|
[32mESM[39m [1mdist/chunk-J5IFYDVU.mjs [22m[32m41.75 KB[39m
|
|
14
17
|
[32mESM[39m [1mdist/index.mjs [22m[32m13.46 KB[39m
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
-
[32mCJS[39m [1mdist/index.js [22m[32m56.89 KB[39m
|
|
17
|
-
[32mCJS[39m [1mdist/cli.js [22m[32m51.74 KB[39m
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in 100ms
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 111ms
|
|
19
19
|
DTS Build start
|
|
20
|
-
DTS ⚡️ Build success in
|
|
20
|
+
DTS ⚡️ Build success in 4360ms
|
|
21
21
|
DTS dist/cli.d.ts 20.00 B
|
|
22
|
-
DTS dist/index.d.ts 3.
|
|
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.
|
|
24
|
+
DTS dist/index.d.mts 3.43 KB
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @aiready/consistency@0.8.
|
|
3
|
+
> @aiready/consistency@0.8.34 test /Users/pengcao/projects/aiready/packages/consistency
|
|
4
4
|
> vitest run
|
|
5
5
|
|
|
6
6
|
[?25l
|
|
7
7
|
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/pengcao/projects/aiready/packages/consistency[39m
|
|
8
8
|
|
|
9
|
-
[32m✓[39m dist/__tests__/scoring.test.js [2m([22m[2m8 tests[22m[2m)[22m[32m
|
|
10
|
-
[32m✓[39m
|
|
11
|
-
[32m✓[39m
|
|
12
|
-
[32m✓[39m src/__tests__/
|
|
13
|
-
[32m✓[39m
|
|
14
|
-
[33m[2m✓[22m[39m should analyze naming issues [33m
|
|
15
|
-
[33m[2m✓[22m[39m should detect minimum severity filtering [33m
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
[32m✓[39m dist/__tests__/scoring.test.js [2m([22m[2m8 tests[22m[2m)[22m[32m 17[2mms[22m[39m
|
|
10
|
+
[32m✓[39m src/__tests__/scoring.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 20[2mms[22m[39m
|
|
11
|
+
[32m✓[39m dist/__tests__/language-filter.test.js [2m([22m[2m3 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
12
|
+
[32m✓[39m src/__tests__/language-filter.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 65[2mms[22m[39m
|
|
13
|
+
[32m✓[39m src/__tests__/analyzer.test.ts [2m([22m[2m18 tests[22m[2m)[22m[33m 4963[2mms[22m[39m
|
|
14
|
+
[33m[2m✓[22m[39m should analyze naming issues [33m 1922[2mms[22m[39m
|
|
15
|
+
[33m[2m✓[22m[39m should detect minimum severity filtering [33m 1275[2mms[22m[39m
|
|
16
|
+
[33m[2m✓[22m[39m should generate relevant recommendations [33m 1761[2mms[22m[39m
|
|
17
|
+
[32m✓[39m dist/__tests__/analyzer.test.js [2m([22m[2m18 tests[22m[2m)[22m[33m 5053[2mms[22m[39m
|
|
18
|
+
[33m[2m✓[22m[39m should analyze naming issues [33m 1838[2mms[22m[39m
|
|
19
|
+
[33m[2m✓[22m[39m should detect minimum severity filtering [33m 1767[2mms[22m[39m
|
|
20
|
+
[33m[2m✓[22m[39m should generate relevant recommendations [33m 1288[2mms[22m[39m
|
|
18
21
|
|
|
19
22
|
[2m Test Files [22m [1m[32m6 passed[39m[22m[90m (6)[39m
|
|
20
23
|
[2m Tests [22m [1m[32m58 passed[39m[22m[90m (58)[39m
|
|
21
|
-
[2m Start at [22m
|
|
22
|
-
[2m Duration [22m
|
|
24
|
+
[2m Start at [22m 00:56:32
|
|
25
|
+
[2m Duration [22m 13.62s[2m (transform 11.16s, setup 0ms, import 33.40s, tests 10.13s, environment 1ms)[22m
|
|
23
26
|
|
|
24
27
|
[?25h
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/consistency",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.34",
|
|
4
4
|
"description": "Detects consistency issues in naming, patterns, and architecture that confuse AI models",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@typescript-eslint/typescript-estree": "^8.53.0",
|
|
44
44
|
"chalk": "^5.3.0",
|
|
45
45
|
"commander": "^14.0.0",
|
|
46
|
-
"@aiready/core": "0.9.
|
|
46
|
+
"@aiready/core": "0.9.35"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^24.0.0",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
2
|
import { analyzeConsistency } from '../analyzer';
|
|
3
|
-
import { analyzeNaming } from '../analyzers/naming';
|
|
4
3
|
import { analyzePatterns } from '../analyzers/patterns';
|
|
5
4
|
|
|
6
5
|
describe('analyzeConsistency', () => {
|
|
@@ -39,8 +38,9 @@ const x = 10;
|
|
|
39
38
|
const y = 20;
|
|
40
39
|
const result = x + y;
|
|
41
40
|
`;
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
void testCode;
|
|
42
|
+
void 0;
|
|
43
|
+
// In a real test, we'd create temp files or mock file reading
|
|
44
44
|
// For now, this is a placeholder structure
|
|
45
45
|
expect(true).toBe(true);
|
|
46
46
|
});
|
|
@@ -111,7 +111,7 @@ function analyzeFileNamingAST(
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
// Track variable declarations
|
|
114
|
-
|
|
114
|
+
if (node.type === 'VariableDeclarator') {
|
|
115
115
|
if (node.id.type === 'Identifier') {
|
|
116
116
|
void isCoverageContext(node, ancestors);
|
|
117
117
|
scopeTracker.declareVariable(
|
|
@@ -184,7 +184,9 @@ function toPascalCase(str: string): string {
|
|
|
184
184
|
/**
|
|
185
185
|
* Detect common Python anti-patterns in naming
|
|
186
186
|
*/
|
|
187
|
-
export function detectPythonNamingAntiPatterns(
|
|
187
|
+
export function detectPythonNamingAntiPatterns(
|
|
188
|
+
_files: string[]
|
|
189
|
+
): NamingIssue[] {
|
|
188
190
|
const issues: NamingIssue[] = [];
|
|
189
191
|
|
|
190
192
|
// Parameter currently unused; reference to avoid lint warnings
|