mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Revert query file change and fix script to handle empty code-quality-extended suites
Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
This commit is contained in:
@@ -5,9 +5,8 @@
|
|||||||
* @problem.severity recommendation
|
* @problem.severity recommendation
|
||||||
* @precision high
|
* @precision high
|
||||||
* @id actions/unnecessary-use-of-advanced-config
|
* @id actions/unnecessary-use-of-advanced-config
|
||||||
* @tags quality
|
* @tags actions
|
||||||
* maintainability
|
* maintainability
|
||||||
* actions
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import codeql.actions.Violations_Of_Best_Practices.DefaultableCodeQLInitiatlizeActionQuery
|
import codeql.actions.Violations_Of_Best_Practices.DefaultableCodeQLInitiatlizeActionQuery
|
||||||
|
|||||||
@@ -184,8 +184,8 @@ with CodeQL() as codeql:
|
|||||||
sys.exit("You can use '--ignore-missing-query-packs' to ignore this error")
|
sys.exit("You can use '--ignore-missing-query-packs' to ignore this error")
|
||||||
|
|
||||||
# Exception for the code-quality suites, which might be empty, but must be resolvable.
|
# Exception for the code-quality suites, which might be empty, but must be resolvable.
|
||||||
if pack == 'code-quality' and queries_subp == '':
|
if pack in ['code-quality', 'code-quality-extended'] and queries_subp == '':
|
||||||
print(f'Warning: skipping empty suite code-quality', file=sys.stderr)
|
print(f'Warning: skipping empty suite {pack}', file=sys.stderr)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Investigate metadata for every query by using 'codeql resolve metadata'
|
# Investigate metadata for every query by using 'codeql resolve metadata'
|
||||||
|
|||||||
Reference in New Issue
Block a user