From ee692018945b526a510a96e59dd7e0bcafe1b686 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 9 Feb 2021 13:45:46 +0000 Subject: [PATCH] Bug 1691352 - fix: mozlint/codespell: Improve the --fix display r=linter-reviewers,andi DONTBUILD Differential Revision: https://phabricator.services.mozilla.com/D104524 --- tools/lint/spell/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lint/spell/__init__.py b/tools/lint/spell/__init__.py index 228d327e2727..e654bd31cdb8 100644 --- a/tools/lint/spell/__init__.py +++ b/tools/lint/spell/__init__.py @@ -51,7 +51,8 @@ class CodespellProcess(LintProcess): match = CODESPELL_FORMAT_REGEX.match(line) abspath, line, typo, correct = match.groups() except AttributeError: - print("Unable to match regex against output: {}".format(line)) + if "FIXED: " not in line: + print("Unable to match regex against output: {}".format(line)) return # Ignore false positive like aParent (which would be fixed to apparent)