Bug 1455451 - Codespell: enable the autofix (with --fix) r=ahal
authorSylvestre Ledru <sledru@mozilla.com>
Thu, 19 Apr 2018 23:41:57 +0200
changeset 468178 44607d1707a8c2cc117cff460da030d4cc701065
parent 468177 6ed42cf2f0dd53c5ea7fd81230ad3288b624b9b2
child 468179 c1191a038fc1df005a8e5a8276716b52677c075e
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1455451
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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