@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/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: namingIssues.length + patternIssues.length,
1326
- namingIssues: namingIssues.length,
1327
- patternIssues: patternIssues.length,
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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  analyzeConsistency
4
- } from "./chunk-7PHHJOGC.mjs";
4
+ } from "./chunk-MM2PLUCH.mjs";
5
5
 
6
6
  // src/cli.ts
7
7
  import { Command } from "commander";
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { ScanOptions, AnalysisResult, Issue, ToolScoringOutput } from '@aiready/core';
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, Issue, ToolScoringOutput } from '@aiready/core';
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: namingIssues.length + patternIssues.length,
1340
- namingIssues: namingIssues.length,
1341
- patternIssues: patternIssues.length,
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
@@ -7,7 +7,7 @@ import {
7
7
  detectNamingConventions,
8
8
  loadNamingConfig,
9
9
  snakeCaseToCamelCase
10
- } from "./chunk-7PHHJOGC.mjs";
10
+ } from "./chunk-MM2PLUCH.mjs";
11
11
 
12
12
  // src/analyzers/naming.ts
13
13
  import { readFileContent } from "@aiready/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiready/consistency",
3
- "version": "0.6.14",
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.11"
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: namingIssues.length + patternIssues.length,
129
- namingIssues: namingIssues.length,
130
- patternIssues: patternIssues.length,
132
+ totalIssues: namingCountFiltered + patternCountFiltered,
133
+ namingIssues: namingCountFiltered,
134
+ patternIssues: patternCountFiltered,
131
135
  architectureIssues: 0,
132
136
  filesAnalyzed: filePaths.length
133
137
  },