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(
12661266 }
12671267
12681268 augmentedConfig [ "query-filters" ] = [
1269- ...( config . augmentationProperties . defaultQueryFilters || [ ] ) ,
1269+ ...( config . augmentationProperties . extraQueryExclusions || [ ] ) ,
12701270 ...( augmentedConfig [ "query-filters" ] || [ ] ) ,
12711271 ] ;
12721272 if ( augmentedConfig [ "query-filters" ] ?. length === 0 ) {
Original file line number Diff line number Diff line change @@ -186,9 +186,9 @@ export interface AugmentationProperties {
186186 packsInput ?: string [ ] ;
187187
188188 /**
189- * Default query filters to apply to the queries in the config.
189+ * Extra query exclusions to append to the config.
190190 */
191- defaultQueryFilters ?: QueryFilter [ ] ;
191+ extraQueryExclusions ?: ExcludeQueryFilter [ ] ;
192192}
193193
194194/**
@@ -201,7 +201,7 @@ export const defaultAugmentationProperties: AugmentationProperties = {
201201 packsInput : undefined ,
202202 queriesInput : undefined ,
203203 qualityQueriesInput : undefined ,
204- defaultQueryFilters : [ ] ,
204+ extraQueryExclusions : [ ] ,
205205} ;
206206export type Packs = Partial < Record < Language , string [ ] > > ;
207207
@@ -671,9 +671,11 @@ export async function calculateAugmentation(
671671 false ,
672672 ) ;
673673
674- const defaultQueryFilters : QueryFilter [ ] = [ ] ;
674+ const extraQueryExclusions : ExcludeQueryFilter [ ] = [ ] ;
675675 if ( await shouldPerformDiffInformedAnalysis ( codeql , features , logger ) ) {
676- defaultQueryFilters . push ( { exclude : { tags : "exclude-from-incremental" } } ) ;
676+ extraQueryExclusions . push ( {
677+ exclude : { tags : "exclude-from-incremental" } ,
678+ } ) ;
677679 }
678680
679681 return {
@@ -682,7 +684,7 @@ export async function calculateAugmentation(
682684 queriesInput,
683685 queriesInputCombines,
684686 qualityQueriesInput,
685- defaultQueryFilters ,
687+ extraQueryExclusions ,
686688 } ;
687689}
688690
You can’t perform that action at this time.
0 commit comments