Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1590)

Unified Diff: third_party/closure_linter/closure_linter/fixjsstyle.py

Issue 411243002: closure_linter: 2.3.4 => 2.3.14 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove checker Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/closure_linter/closure_linter/fixjsstyle.py
diff --git a/third_party/closure_linter/closure_linter/fixjsstyle.py b/third_party/closure_linter/closure_linter/fixjsstyle.py
index c23f6b756b91da44cb25f8fcfe0eae712316f6db..1b5905b131c7e57b42666224c63c222d6ae0f7f4 100755
--- a/third_party/closure_linter/closure_linter/fixjsstyle.py
+++ b/third_party/closure_linter/closure_linter/fixjsstyle.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# python2.6 for command-line runs using p4lib. pylint: disable-msg=C6301
#
# Copyright 2007 The Closure Linter Authors. All Rights Reserved.
#
@@ -22,8 +21,9 @@ __author__ = 'robbyw@google.com (Robert Walker)'
import sys
import gflags as flags
-from closure_linter import checker
+
from closure_linter import error_fixer
+from closure_linter import runner
from closure_linter.common import simplefileflags as fileflags
FLAGS = flags.FLAGS
@@ -32,7 +32,7 @@ flags.DEFINE_list('additional_extensions', None, 'List of additional file '
'JavaScript files.')
-def main(argv = None):
+def main(argv=None):
"""Main function.
Args:
@@ -47,11 +47,12 @@ def main(argv = None):
files = fileflags.GetFileList(argv, 'JavaScript', suffixes)
- style_checker = checker.JavaScriptStyleChecker(error_fixer.ErrorFixer())
+ fixer = error_fixer.ErrorFixer()
# Check the list of files.
for filename in files:
- style_checker.Check(filename)
+ runner.Run(filename, fixer)
+
if __name__ == '__main__':
main()
« no previous file with comments | « third_party/closure_linter/closure_linter/errors.py ('k') | third_party/closure_linter/closure_linter/fixjsstyle_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698