File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export interface FeatureEnablement {
44
44
*/
45
45
export enum Feature {
46
46
CliConfigFileEnabled = "cli_config_file_enabled" ,
47
+ CodeqlJavaLombokEnabled = "codeql_java_lombok_enabled" ,
47
48
DisableKotlinAnalysisEnabled = "disable_kotlin_analysis_enabled" ,
48
49
DisablePythonDependencyInstallationEnabled = "disable_python_dependency_installation_enabled" ,
49
50
ExportDiagnosticsEnabled = "export_diagnostics_enabled" ,
@@ -58,6 +59,11 @@ export const featureConfig: Record<
58
59
Feature ,
59
60
{ envVar : string ; minimumVersion : string | undefined ; defaultValue : boolean }
60
61
> = {
62
+ [ Feature . CodeqlJavaLombokEnabled ] : {
63
+ envVar : "CODEQL_JAVA_LOMBOK_ENABLED" ,
64
+ minimumVersion : "2.14.0" ,
65
+ defaultValue : false ,
66
+ } ,
61
67
[ Feature . DisableKotlinAnalysisEnabled ] : {
62
68
envVar : "CODEQL_DISABLE_KOTLIN_ANALYSIS" ,
63
69
minimumVersion : undefined ,
Original file line number Diff line number Diff line change @@ -342,6 +342,14 @@ async function run() {
342
342
core . exportVariable ( "CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN" , "true" ) ;
343
343
}
344
344
345
+ if ( await features . getValue ( Feature . CodeqlJavaLombokEnabled ) ) {
346
+ logger . info ( "Enabling CodeQL Java Lombok support" ) ;
347
+ core . exportVariable ( "CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS" , "true" ) ;
348
+ } else {
349
+ logger . info ( "Disabling CodeQL Java Lombok support" ) ;
350
+ core . exportVariable ( "CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS" , "false" ) ;
351
+ }
352
+
345
353
// Disable Python dependency extraction if feature flag set
346
354
if (
347
355
await features . getValue (
You can’t perform that action at this time.
0 commit comments