# HG changeset patch # User Sylvestre Ledru # Date 1524174117 -7200 # Node ID 44607d1707a8c2cc117cff460da030d4cc701065 # Parent 6ed42cf2f0dd53c5ea7fd81230ad3288b624b9b2 Bug 1455451 - Codespell: enable the autofix (with --fix) r=ahal MozReview-Commit-ID: FkWHbqvkkZV diff --git a/tools/lint/spell/__init__.py b/tools/lint/spell/__init__.py --- 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