opencode-sonarqube 1.2.38 → 1.2.40
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/index.js +10 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16829,8 +16829,8 @@ async function generatePropertiesContent(options, config2, directory) {
|
|
|
16829
16829
|
const exclusions = options.exclusions ?? config2?.exclusions ?? getDefaultExclusions(detection);
|
|
16830
16830
|
const sourceConfig = [
|
|
16831
16831
|
"",
|
|
16832
|
-
"# Source Configuration",
|
|
16833
|
-
`sonar.sources
|
|
16832
|
+
"# Source Configuration - ALWAYS scans entire project",
|
|
16833
|
+
`sonar.sources=.`
|
|
16834
16834
|
];
|
|
16835
16835
|
if (options.tests ?? config2?.tests) {
|
|
16836
16836
|
sourceConfig.push(`sonar.tests=${options.tests ?? config2?.tests}`);
|
|
@@ -16874,7 +16874,7 @@ async function generatePropertiesContent(options, config2, directory) {
|
|
|
16874
16874
|
if (detection.languages.includes("typescript") || detection.languages.includes("javascript")) {
|
|
16875
16875
|
const tsJsConfig = ["", "# TypeScript/JavaScript"];
|
|
16876
16876
|
if (detection.languages.includes("typescript")) {
|
|
16877
|
-
tsJsConfig.push("sonar.typescript.tsconfigPaths
|
|
16877
|
+
tsJsConfig.push("sonar.typescript.tsconfigPaths=**/tsconfig.json");
|
|
16878
16878
|
}
|
|
16879
16879
|
tsJsConfig.push("sonar.javascript.node.maxspace=4096");
|
|
16880
16880
|
if (detection.coverageReportPath) {
|
|
@@ -19013,16 +19013,13 @@ async function runAnalysis(config2, state, options, directory) {
|
|
|
19013
19013
|
const dir = directory ?? process.cwd();
|
|
19014
19014
|
const api2 = createSonarQubeAPI(config2, state);
|
|
19015
19015
|
const projectName = options.projectName ?? options.projectKey;
|
|
19016
|
-
|
|
19017
|
-
|
|
19018
|
-
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
exclusions: options.exclusions ?? config2.exclusions
|
|
19024
|
-
}, config2, dir);
|
|
19025
|
-
}
|
|
19016
|
+
await writePropertiesFile({
|
|
19017
|
+
projectKey: options.projectKey,
|
|
19018
|
+
projectName,
|
|
19019
|
+
sources: ".",
|
|
19020
|
+
tests: options.tests ?? config2.tests,
|
|
19021
|
+
exclusions: options.exclusions ?? config2.exclusions
|
|
19022
|
+
}, config2, dir);
|
|
19026
19023
|
const scannerResult = await runScanner(config2, state, {
|
|
19027
19024
|
projectKey: options.projectKey,
|
|
19028
19025
|
projectName,
|