зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1691352 - fix: mozlint/codespell: Improve the --fix display r=linter-reviewers,andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D104524
This commit is contained in:
Родитель
383297711f
Коммит
ee69201894
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче