@aiready/consistency 0.5.0 → 0.6.1
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 +24 -0
- package/.turbo/turbo-test.log +123 -0
- package/dist/chunk-HAOJLJNB.mjs +1290 -0
- package/dist/chunk-IVRBV7SE.mjs +1295 -0
- package/dist/chunk-LD3CHHU2.mjs +1297 -0
- package/dist/chunk-VODCPPET.mjs +1292 -0
- package/dist/chunk-WGH4TGZ3.mjs +1288 -0
- package/dist/cli.js +624 -189
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +1196 -182
- package/dist/index.mjs +581 -4
- package/package.json +14 -13
- package/src/analyzer.ts +4 -4
- package/src/analyzers/naming-ast.ts +378 -0
- package/src/index.ts +2 -1
- package/src/utils/ast-parser.ts +181 -0
- package/src/utils/context-detector.ts +278 -0
- package/src/utils/scope-tracker.ts +221 -0
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -57,6 +57,11 @@ interface ConsistencyReport {
|
|
|
57
57
|
*/
|
|
58
58
|
declare function analyzeConsistency(options: ConsistencyOptions): Promise<ConsistencyReport>;
|
|
59
59
|
|
|
60
|
+
/**
|
|
61
|
+
* AST-based naming analyzer
|
|
62
|
+
*/
|
|
63
|
+
declare function analyzeNamingAST(files: string[]): Promise<NamingIssue[]>;
|
|
64
|
+
|
|
60
65
|
/**
|
|
61
66
|
* Analyzes naming conventions and quality
|
|
62
67
|
*/
|
|
@@ -74,4 +79,4 @@ declare function detectNamingConventions(files: string[], allIssues: NamingIssue
|
|
|
74
79
|
*/
|
|
75
80
|
declare function analyzePatterns(files: string[]): Promise<PatternIssue[]>;
|
|
76
81
|
|
|
77
|
-
export { type ArchitectureIssue, type ConsistencyIssue, type ConsistencyOptions, type ConsistencyReport, type NamingIssue, type PatternIssue, analyzeConsistency, analyzeNaming, analyzePatterns, detectNamingConventions };
|
|
82
|
+
export { type ArchitectureIssue, type ConsistencyIssue, type ConsistencyOptions, type ConsistencyReport, type NamingIssue, type PatternIssue, analyzeConsistency, analyzeNaming, analyzeNamingAST, analyzePatterns, detectNamingConventions };
|
package/dist/index.d.ts
CHANGED
|
@@ -57,6 +57,11 @@ interface ConsistencyReport {
|
|
|
57
57
|
*/
|
|
58
58
|
declare function analyzeConsistency(options: ConsistencyOptions): Promise<ConsistencyReport>;
|
|
59
59
|
|
|
60
|
+
/**
|
|
61
|
+
* AST-based naming analyzer
|
|
62
|
+
*/
|
|
63
|
+
declare function analyzeNamingAST(files: string[]): Promise<NamingIssue[]>;
|
|
64
|
+
|
|
60
65
|
/**
|
|
61
66
|
* Analyzes naming conventions and quality
|
|
62
67
|
*/
|
|
@@ -74,4 +79,4 @@ declare function detectNamingConventions(files: string[], allIssues: NamingIssue
|
|
|
74
79
|
*/
|
|
75
80
|
declare function analyzePatterns(files: string[]): Promise<PatternIssue[]>;
|
|
76
81
|
|
|
77
|
-
export { type ArchitectureIssue, type ConsistencyIssue, type ConsistencyOptions, type ConsistencyReport, type NamingIssue, type PatternIssue, analyzeConsistency, analyzeNaming, analyzePatterns, detectNamingConventions };
|
|
82
|
+
export { type ArchitectureIssue, type ConsistencyIssue, type ConsistencyOptions, type ConsistencyReport, type NamingIssue, type PatternIssue, analyzeConsistency, analyzeNaming, analyzeNamingAST, analyzePatterns, detectNamingConventions };
|