Skip to content

Commit

Permalink
minor bug fix add param
Browse files Browse the repository at this point in the history
  • Loading branch information
michaela-perrotta committed Nov 8, 2024
1 parent e41eaab commit 7536c8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,5 @@ private void initDocumentBuilder() throws ParserConfigurationException {

public abstract String getOutputLocation();

public abstract void visit(List<ISASTTarget> targets, boolean isThirdPartyScanningEnabled, boolean isOpenSourceOnlyEnabled, boolean isSourceCodeOnlyEnabled, boolean isStaticAnalysisOnlyEnabled, boolean isSecretsScanningDisabled, boolean isSecretsScanningOnlyEnabled);
public abstract void visit(List<ISASTTarget> targets, boolean isThirdPartyScanningEnabled, boolean isOpenSourceOnlyEnabled, boolean isSourceCodeOnlyEnabled, boolean isStaticAnalysisOnlyEnabled, boolean isSecretsScanningDisabled, boolean isSecretsScanningEnabled, boolean isSecretsScanningOnlyEnabled);
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ public void visit(List<ISASTTarget> targets, boolean isThirdPartyScanningEnabled
if (isStaticAnalysisOnlyEnabled) {
m_config.setAttribute(A_STATIC_ANALYSIS_ONLY, "true");
}

if (isSecretsScanningDisabled) {
m_config.setAttribute(A_SECRETS_DISABLED, "true");
}
if (isSecretsScanningEnabled) {{
m_config.setAttribute(A_SECRETS_ENABLED, "true");
}
m_config.setAttribute(A_SECRETS_DISABLED, "true");
}
if (isSecretsScanningEnabled) {
m_config.setAttribute(A_SECRETS_ENABLED, "true");
}

if (isSecretsScanningOnlyEnabled) {
m_config.setAttribute(A_SECRETS_ONLY, "true");
}
Expand Down Expand Up @@ -124,6 +125,7 @@ public void write() throws TransformerException {
m_config.write(m_transformer);
}


/**
* Returns the location of the generated configuration file.
* @return The location of the generated configuration file.
Expand Down

0 comments on commit 7536c8b

Please sign in to comment.