Skip to content

Commit

Permalink
Lombok: Only do anything if Java is being analysed
Browse files Browse the repository at this point in the history
  • Loading branch information
igfoo committed Jul 28, 2023
1 parent 976ada2 commit 34090fe
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/init-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,18 +342,20 @@ async function run() {
core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true");
}

if (await features.getValue(Feature.CodeqlJavaLombokEnabled, codeql)) {
logger.info("Enabling CodeQL Java Lombok support");
core.exportVariable(
"CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS",
"true",
);
} else {
logger.info("Disabling CodeQL Java Lombok support");
core.exportVariable(
"CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS",
"false",
);
if (config.languages.includes(Language.java)) {
if (await features.getValue(Feature.CodeqlJavaLombokEnabled, codeql)) {
logger.info("Enabling CodeQL Java Lombok support");
core.exportVariable(
"CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS",
"true",
);
} else {
logger.info("Disabling CodeQL Java Lombok support");
core.exportVariable(
"CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS",
"false",
);
}
}

// Disable Python dependency extraction if feature flag set
Expand Down

0 comments on commit 34090fe

Please sign in to comment.