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

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

Issue 2328693002: Updated linter with upstream release (2.3.19) (Closed)
Patch Set: Created 4 years, 3 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/gjslint.py
diff --git a/third_party/closure_linter/closure_linter/gjslint.py b/third_party/closure_linter/closure_linter/gjslint.py
index 824e025dcb00de1eaea0bf1a7367972f7e8da038..b67c5a98bab2b1c8d34e0681673188b3895a55f7 100755
--- a/third_party/closure_linter/closure_linter/gjslint.py
+++ b/third_party/closure_linter/closure_linter/gjslint.py
@@ -255,6 +255,14 @@ def main(argv=None):
if FLAGS.time:
start_time = time.time()
+ # Emacs sets the environment variable INSIDE_EMACS in the subshell.
+ # Request Unix mode as emacs will expect output to be in Unix format
+ # for integration.
+ # See https://www.gnu.org/software/emacs/manual/html_node/emacs/
+ # Interactive-Shell.html
+ if 'INSIDE_EMACS' in os.environ:
+ FLAGS.unix_mode = True
+
suffixes = ['.js']
if FLAGS.additional_extensions:
suffixes += ['.%s' % ext for ext in FLAGS.additional_extensions]

Powered by Google App Engine
This is Rietveld 408576698