@aiready/consistency 0.6.14 → 0.6.16
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 +7 -7
- package/.turbo/turbo-test.log +26 -207
- package/README.md +2 -2
- package/dist/chunk-MM2PLUCH.mjs +1376 -0
- package/dist/cli.js +5 -3
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/analyzer.ts +7 -3
package/dist/cli.js
CHANGED
|
@@ -1320,11 +1320,13 @@ async function analyzeConsistency(options) {
|
|
|
1320
1320
|
return fileResultB.issues.length - fileResultA.issues.length;
|
|
1321
1321
|
});
|
|
1322
1322
|
const recommendations = generateRecommendations(namingIssues, patternIssues);
|
|
1323
|
+
const namingCountFiltered = namingIssues.filter((i) => shouldIncludeSeverity(i.severity, minSeverity)).length;
|
|
1324
|
+
const patternCountFiltered = patternIssues.filter((i) => shouldIncludeSeverity(i.severity, minSeverity)).length;
|
|
1323
1325
|
return {
|
|
1324
1326
|
summary: {
|
|
1325
|
-
totalIssues:
|
|
1326
|
-
namingIssues:
|
|
1327
|
-
patternIssues:
|
|
1327
|
+
totalIssues: namingCountFiltered + patternCountFiltered,
|
|
1328
|
+
namingIssues: namingCountFiltered,
|
|
1329
|
+
patternIssues: patternCountFiltered,
|
|
1328
1330
|
architectureIssues: 0,
|
|
1329
1331
|
filesAnalyzed: filePaths.length
|
|
1330
1332
|
},
|
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScanOptions, AnalysisResult,
|
|
1
|
+
import { Issue, ScanOptions, AnalysisResult, ToolScoringOutput } from '@aiready/core';
|
|
2
2
|
|
|
3
3
|
interface ConsistencyOptions extends ScanOptions {
|
|
4
4
|
/** Check naming conventions and quality */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScanOptions, AnalysisResult,
|
|
1
|
+
import { Issue, ScanOptions, AnalysisResult, ToolScoringOutput } from '@aiready/core';
|
|
2
2
|
|
|
3
3
|
interface ConsistencyOptions extends ScanOptions {
|
|
4
4
|
/** Check naming conventions and quality */
|
package/dist/index.js
CHANGED
|
@@ -1334,11 +1334,13 @@ async function analyzeConsistency(options) {
|
|
|
1334
1334
|
return fileResultB.issues.length - fileResultA.issues.length;
|
|
1335
1335
|
});
|
|
1336
1336
|
const recommendations = generateRecommendations(namingIssues, patternIssues);
|
|
1337
|
+
const namingCountFiltered = namingIssues.filter((i) => shouldIncludeSeverity(i.severity, minSeverity)).length;
|
|
1338
|
+
const patternCountFiltered = patternIssues.filter((i) => shouldIncludeSeverity(i.severity, minSeverity)).length;
|
|
1337
1339
|
return {
|
|
1338
1340
|
summary: {
|
|
1339
|
-
totalIssues:
|
|
1340
|
-
namingIssues:
|
|
1341
|
-
patternIssues:
|
|
1341
|
+
totalIssues: namingCountFiltered + patternCountFiltered,
|
|
1342
|
+
namingIssues: namingCountFiltered,
|
|
1343
|
+
patternIssues: patternCountFiltered,
|
|
1342
1344
|
architectureIssues: 0,
|
|
1343
1345
|
filesAnalyzed: filePaths.length
|
|
1344
1346
|
},
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/consistency",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.16",
|
|
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.7.
|
|
46
|
+
"@aiready/core": "0.7.13"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^24.0.0",
|
package/src/analyzer.ts
CHANGED
|
@@ -120,14 +120,18 @@ export async function analyzeConsistency(
|
|
|
120
120
|
// Generate recommendations
|
|
121
121
|
const recommendations = generateRecommendations(namingIssues, patternIssues);
|
|
122
122
|
|
|
123
|
+
// Compute filtered counts (respecting minSeverity) to report accurate summary
|
|
124
|
+
const namingCountFiltered = namingIssues.filter(i => shouldIncludeSeverity(i.severity, minSeverity)).length;
|
|
125
|
+
const patternCountFiltered = patternIssues.filter(i => shouldIncludeSeverity(i.severity, minSeverity)).length;
|
|
126
|
+
|
|
123
127
|
// Detect naming conventions (TODO: re-implement for AST version)
|
|
124
128
|
// const conventionAnalysis = detectNamingConventions(filePaths, namingIssues);
|
|
125
129
|
|
|
126
130
|
return {
|
|
127
131
|
summary: {
|
|
128
|
-
totalIssues:
|
|
129
|
-
namingIssues:
|
|
130
|
-
patternIssues:
|
|
132
|
+
totalIssues: namingCountFiltered + patternCountFiltered,
|
|
133
|
+
namingIssues: namingCountFiltered,
|
|
134
|
+
patternIssues: patternCountFiltered,
|
|
131
135
|
architectureIssues: 0,
|
|
132
136
|
filesAnalyzed: filePaths.length
|
|
133
137
|
},
|