Skip to content

Commit 20e23f8

Browse files
authored
Merge pull request #2 from felickz/copilot/fix-1760475-601388369-59cd8e3d-0895-49ec-9025-a9864c8e5367
Fix generate-code-scanning-query-list.py to handle empty code-quality-extended suites
2 parents 5059768 + 0fc2502 commit 20e23f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/scripts/generate-code-scanning-query-list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ def subprocess_run(cmd):
184184
sys.exit("You can use '--ignore-missing-query-packs' to ignore this error")
185185

186186
# Exception for the code-quality suites, which might be empty, but must be resolvable.
187-
if pack == 'code-quality' and queries_subp == '':
188-
print(f'Warning: skipping empty suite code-quality', file=sys.stderr)
187+
if pack in ['code-quality', 'code-quality-extended'] and queries_subp == '':
188+
print(f'Warning: skipping empty suite {pack}', file=sys.stderr)
189189
continue
190190

191191
# Investigate metadata for every query by using 'codeql resolve metadata'

0 commit comments

Comments
 (0)