File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -1266,7 +1266,7 @@ async function generateCodeScanningConfig(
1266
1266
}
1267
1267
1268
1268
augmentedConfig [ "query-filters" ] = [
1269
- ...( config . augmentationProperties . defaultQueryFilters || [ ] ) ,
1269
+ ...( config . augmentationProperties . extraQueryExclusions || [ ] ) ,
1270
1270
...( augmentedConfig [ "query-filters" ] || [ ] ) ,
1271
1271
] ;
1272
1272
if ( augmentedConfig [ "query-filters" ] ?. length === 0 ) {
Original file line number Diff line number Diff line change @@ -186,9 +186,9 @@ export interface AugmentationProperties {
186
186
packsInput ?: string [ ] ;
187
187
188
188
/**
189
- * Default query filters to apply to the queries in the config.
189
+ * Extra query exclusions to append to the config.
190
190
*/
191
- defaultQueryFilters ?: QueryFilter [ ] ;
191
+ extraQueryExclusions ?: ExcludeQueryFilter [ ] ;
192
192
}
193
193
194
194
/**
@@ -201,7 +201,7 @@ export const defaultAugmentationProperties: AugmentationProperties = {
201
201
packsInput : undefined ,
202
202
queriesInput : undefined ,
203
203
qualityQueriesInput : undefined ,
204
- defaultQueryFilters : [ ] ,
204
+ extraQueryExclusions : [ ] ,
205
205
} ;
206
206
export type Packs = Partial < Record < Language , string [ ] > > ;
207
207
@@ -671,9 +671,11 @@ export async function calculateAugmentation(
671
671
false ,
672
672
) ;
673
673
674
- const defaultQueryFilters : QueryFilter [ ] = [ ] ;
674
+ const extraQueryExclusions : ExcludeQueryFilter [ ] = [ ] ;
675
675
if ( await shouldPerformDiffInformedAnalysis ( codeql , features , logger ) ) {
676
- defaultQueryFilters . push ( { exclude : { tags : "exclude-from-incremental" } } ) ;
676
+ extraQueryExclusions . push ( {
677
+ exclude : { tags : "exclude-from-incremental" } ,
678
+ } ) ;
677
679
}
678
680
679
681
return {
@@ -682,7 +684,7 @@ export async function calculateAugmentation(
682
684
queriesInput,
683
685
queriesInputCombines,
684
686
qualityQueriesInput,
685
- defaultQueryFilters ,
687
+ extraQueryExclusions ,
686
688
} ;
687
689
}
688
690
You can’t perform that action at this time.
0 commit comments