@osovv/grace-cli 3.1.0 → 3.3.0

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.
@@ -0,0 +1,69 @@
1
+ export type LintSeverity = "error" | "warning";
2
+
3
+ export type ModuleRole = "RUNTIME" | "TEST" | "BARREL" | "CONFIG" | "TYPES" | "SCRIPT";
4
+ export type MapMode = "EXPORTS" | "LOCALS" | "SUMMARY" | "NONE";
5
+
6
+ export type LintIssue = {
7
+ severity: LintSeverity;
8
+ code: string;
9
+ file: string;
10
+ line?: number;
11
+ message: string;
12
+ };
13
+
14
+ export type LintResult = {
15
+ root: string;
16
+ filesChecked: number;
17
+ governedFiles: number;
18
+ xmlFilesChecked: number;
19
+ issues: LintIssue[];
20
+ };
21
+
22
+ export type LintOptions = {
23
+ allowMissingDocs?: boolean;
24
+ };
25
+
26
+ export type GraceLintConfig = {
27
+ ignoredDirs?: string[];
28
+ };
29
+
30
+ export type MarkupSection = {
31
+ content: string;
32
+ startLine: number;
33
+ endLine: number;
34
+ };
35
+
36
+ export type ModuleContractInfo = {
37
+ fields: Record<string, string>;
38
+ purpose?: string;
39
+ scope?: string;
40
+ depends?: string;
41
+ links?: string;
42
+ role?: ModuleRole;
43
+ mapMode?: MapMode;
44
+ };
45
+
46
+ export type ModuleMapItem = {
47
+ label: string;
48
+ symbolName?: string;
49
+ line: number;
50
+ };
51
+
52
+ export type LanguageAnalysis = {
53
+ adapterId: string;
54
+ exports: Set<string>;
55
+ valueExports: Set<string>;
56
+ typeExports: Set<string>;
57
+ hasDefaultExport: boolean;
58
+ hasWildcardReExport: boolean;
59
+ directReExportCount: number;
60
+ localExportCount: number;
61
+ localImplementationCount: number;
62
+ usesTestFramework: boolean;
63
+ };
64
+
65
+ export type LanguageAdapter = {
66
+ id: string;
67
+ supports(filePath: string): boolean;
68
+ analyze(filePath: string, text: string): LanguageAnalysis;
69
+ };