We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 935afec + 0e157c7 commit 7ad9431Copy full SHA for 7ad9431
python_lint.py
@@ -770,7 +770,8 @@ def main() -> None:
770
logging.basicConfig(level=logging.DEBUG if args.debug else logging.INFO)
771
772
if any({linter not in LINTERS for linter in args.linter}):
773
- LOG.error("Invalid linter choice: %s", args.linter)
+ sanitized_linter = [re.sub(r'[\x00-\x1F]', '', linter) for linter in args.linter]
774
+ LOG.error("Invalid linter choice: %s", ', '.join(sanitized_linter))
775
sys.exit(1)
776
777
sarif_runs: List[dict] = []
0 commit comments