Bug 1455451 - Codespell: enable the autofix (with --fix) r?ahal
MozReview-Commit-ID: FkWHbqvkkZV
--- a/tools/lint/spell/__init__.py
+++ b/tools/lint/spell/__init__.py
@@ -108,17 +108,15 @@ def lint(paths, config, fix=None, **lint
# 2: disable warnings about binary file
# 4: shut down warnings about automatic fixes
# that were disabled in dictionary.
'--quiet-level=4',
'--ignore-words=' + exclude_list,
'--skip=exclude-list.txt',
]
-# Disabled for now because of
-# https://github.com/lucasdemarchi/codespell/issues/314
-# if fix:
-# cmd_args.append('--write-changes')
+ if fix:
+ cmd_args.append('--write-changes')
base_command = cmd_args + paths
run_process(config, base_command)
return results