@jonathan0823/pi-sonarqube 0.1.3 → 0.2.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.
- package/README.md +25 -3
- package/dist/api.d.ts +39 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +443 -0
- package/dist/api.js.map +1 -0
- package/dist/commands.d.ts +69 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +248 -0
- package/dist/commands.js.map +1 -0
- package/dist/config.d.ts +38 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +275 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +2 -54
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +315 -975
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +92 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +6 -0
- package/dist/types.js.map +1 -0
- package/dist/ui.d.ts +40 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +234 -0
- package/dist/ui.js.map +1 -0
- package/package.json +1 -1
- package/src/api.ts +587 -0
- package/src/commands.ts +314 -0
- package/src/config.ts +336 -0
- package/src/index.ts +477 -1262
- package/src/types.ts +112 -0
- package/src/ui.ts +320 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,57 +1,5 @@
|
|
|
1
1
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
|
-
export type SonarAction = "analyze" | "issues" | "open" | "init";
|
|
3
|
-
export interface SonarIssue {
|
|
4
|
-
key: string;
|
|
5
|
-
rule: string;
|
|
6
|
-
ruleName?: string;
|
|
7
|
-
severity: string;
|
|
8
|
-
message: string;
|
|
9
|
-
filePath: string;
|
|
10
|
-
line: number | null;
|
|
11
|
-
status?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface SonarAnalysisState {
|
|
14
|
-
version: 1;
|
|
15
|
-
analyzedAt: string;
|
|
16
|
-
baseDir: string;
|
|
17
|
-
serverUrl: string;
|
|
18
|
-
projectKey: string;
|
|
19
|
-
dashboardUrl?: string;
|
|
20
|
-
ceTaskUrl?: string;
|
|
21
|
-
analysisId?: string;
|
|
22
|
-
filters?: SonarIssueFetchOptions;
|
|
23
|
-
totalIssues: number;
|
|
24
|
-
issues: SonarIssue[];
|
|
25
|
-
}
|
|
26
|
-
export interface SonarProjectConfig {
|
|
27
|
-
baseDir: string;
|
|
28
|
-
serverUrl: string;
|
|
29
|
-
projectKey: string;
|
|
30
|
-
token?: string;
|
|
31
|
-
hasProperties: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface SonarIssueFetchOptions {
|
|
34
|
-
severities?: string[];
|
|
35
|
-
statuses?: string[];
|
|
36
|
-
types?: string[];
|
|
37
|
-
rules?: string[];
|
|
38
|
-
}
|
|
39
|
-
export interface SonarInitConfig {
|
|
40
|
-
serverUrl: string;
|
|
41
|
-
projectKey: string;
|
|
42
|
-
token?: string;
|
|
43
|
-
}
|
|
44
|
-
declare function projectConfigPath(baseDir: string): string;
|
|
45
|
-
declare function sonarqubeConfigDir(baseDir: string): string;
|
|
46
|
-
/**
|
|
47
|
-
* Load project-local config from `.pi/sonarqube.json`.
|
|
48
|
-
* Returns undefined when the file doesn't exist or is invalid.
|
|
49
|
-
*/
|
|
50
|
-
declare function loadProjectConfig(baseDir: string): Promise<SonarInitConfig | undefined>;
|
|
51
|
-
/**
|
|
52
|
-
* Save project-local config to `.pi/sonarqube.json`.
|
|
53
|
-
*/
|
|
54
|
-
declare function saveProjectConfig(baseDir: string, config: SonarInitConfig): Promise<void>;
|
|
55
|
-
export { projectConfigPath, loadProjectConfig, saveProjectConfig, sonarqubeConfigDir };
|
|
56
2
|
export default function sonarqube(pi: ExtensionAPI): void;
|
|
3
|
+
export type { SonarAction, SonarIssue, SonarAnalysisState, SonarProjectConfig, SonarIssueFetchOptions, SonarInitConfig, } from "./types.js";
|
|
4
|
+
export { projectConfigPath, loadProjectConfig, saveProjectConfig } from "./config.js";
|
|
57
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAoD,MAAM,iCAAiC,CAAC;AA4StH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,EAAE,YAAY,QAgMjD;AAyOD,YAAY,EACV,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC"}
|