CodeQL reports some true and some false positive for a specific rule.
Is there a way to mark a Python codeline so that the check is ignored by CodeQL?
Similar, for example to # noqa for Python flake or pep-8 checks.
CodeQL reports some true and some false positive for a specific rule.
Is there a way to mark a Python codeline so that the check is ignored by CodeQL?
Similar, for example to # noqa for Python flake or pep-8 checks.
Copyright © 2021 Jogjafile Inc.
Check out one alternative using the open source project advanced-security/dismiss-alerts. It introduces an additional CodeQL query to extract out
//codeql[py/line-too-long]or# noqastyle comments in your code (see test.py). Those comments are then fed into the SARIFsuppression[]object and dismissed in Code Scanning by calling the GitHub alerts api.