File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export interface FeatureEnablement {
4444 */
4545export enum Feature {
4646 CliConfigFileEnabled = "cli_config_file_enabled" ,
47+ CodeqlJavaLombokEnabled = "codeql_java_lombok_enabled" ,
4748 DisableKotlinAnalysisEnabled = "disable_kotlin_analysis_enabled" ,
4849 DisablePythonDependencyInstallationEnabled = "disable_python_dependency_installation_enabled" ,
4950 ExportDiagnosticsEnabled = "export_diagnostics_enabled" ,
@@ -58,6 +59,11 @@ export const featureConfig: Record<
5859 Feature ,
5960 { envVar : string ; minimumVersion : string | undefined ; defaultValue : boolean }
6061> = {
62+ [ Feature . CodeqlJavaLombokEnabled ] : {
63+ envVar : "CODEQL_JAVA_LOMBOK_ENABLED" ,
64+ minimumVersion : "2.14.0" ,
65+ defaultValue : false ,
66+ } ,
6167 [ Feature . DisableKotlinAnalysisEnabled ] : {
6268 envVar : "CODEQL_DISABLE_KOTLIN_ANALYSIS" ,
6369 minimumVersion : undefined ,
Original file line number Diff line number Diff line change @@ -342,6 +342,14 @@ async function run() {
342342 core . exportVariable ( "CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN" , "true" ) ;
343343 }
344344
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+
345353 // Disable Python dependency extraction if feature flag set
346354 if (
347355 await features . getValue (
You can’t perform that action at this time.
0 commit comments