Bug 1703664 - Fix linting opt failure on mozlint/roller.py.

CLOSED TREE
This commit is contained in:
Cosmin Sabou 2021-04-09 18:56:25 +03:00
parent dc4a470855
commit 79873d0515

View File

@ -55,7 +55,9 @@ def _run_worker(config, paths, **lintargs):
# Override warnings setup for code review
# Only disactivating when code_review_warnings is set to False on a linter.yml in use
if os.environ.get("CODE_REVIEW") == "1" and config.get("code_review_warnings", True):
if os.environ.get("CODE_REVIEW") == "1" and config.get(
"code_review_warnings", True
):
lintargs["show_warnings"] = True
func = supported_types[config["type"]]