Skip to content

Commit

Permalink
JS-363 - Support environment variable for setting skipNodeProvisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmorand-sonarsource committed Nov 19, 2024
1 parent ac71cb1 commit 4dfa65f
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public class JavaScriptPlugin implements Plugin {
private static final String FILE_SUFFIXES_DESCRIPTION = "List of suffixes for files to analyze.";

public static final String PROPERTY_KEY_MAX_FILE_SIZE = "sonar.javascript.maxFileSize";
public static final String SKIP_NODE_PROVISIONING_PROPERTY = "sonar.scanner.skipNodeProvisioning";

@Override
public void define(Context context) {
Expand Down Expand Up @@ -251,6 +252,16 @@ public void define(Context context) {
.subCategory(GENERAL)
.multiValues(true)
.category(JS_TS_CATEGORY)
.build(),
PropertyDefinition
.builder(SKIP_NODE_PROVISIONING_PROPERTY)
.defaultValue("false")
.name("Skip the deployment of the embedded Node.js runtime")
.description("Controls whether the scanner should skip the deployment of the embedded Node.js runtime, and use the host-provided runtime instead.")
.onQualifiers(Qualifiers.PROJECT)
.subCategory(GENERAL)
.category(JS_TS_CATEGORY)
.type(PropertyType.BOOLEAN)
.build()
);

Expand Down

0 comments on commit 4dfa65f

Please sign in to comment.