Bug 1455451 - Codespell: enable the autofix (with --fix) r?ahal draft
authorSylvestre Ledru <sledru@mozilla.com>
Thu, 19 Apr 2018 23:41:57 +0200
changeset 785319 b1efbf1925404389c8337eb7a47d582cceada1a5
parent 785317 cf8bd4089fbb88851b07c2af1f799c9ab691fe58
push id107190
push userbmo:sledru@mozilla.com
push dateThu, 19 Apr 2018 21:42:23 +0000
reviewersahal
bugs1455451
milestone61.0a1
Bug 1455451 - Codespell: enable the autofix (with --fix) r?ahal MozReview-Commit-ID: FkWHbqvkkZV
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