Commit 06dba1b1 authored by Christopher Lam's avatar Christopher Lam Committed by Commit Bot

Add JS to git cl format.

This CL adds .js to the list of file extensions that get clang-formatted.

BUG=567770

Change-Id: Ieed162a84ca68877e5107da1824b1f49c71d51ed
Reviewed-on: https://chromium-review.googlesource.com/429551Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@chromium.org>
Commit-Queue: Dan Beam <dbeam@chromium.org>
parent 147c5591
...@@ -5177,7 +5177,7 @@ def MatchingFileType(file_name, extensions): ...@@ -5177,7 +5177,7 @@ def MatchingFileType(file_name, extensions):
@subcommand.usage('[files or directories to diff]') @subcommand.usage('[files or directories to diff]')
def CMDformat(parser, args): def CMDformat(parser, args):
"""Runs auto-formatting tools (clang-format etc.) on the diff.""" """Runs auto-formatting tools (clang-format etc.) on the diff."""
CLANG_EXTS = ['.cc', '.cpp', '.h', '.m', '.mm', '.proto', '.java'] CLANG_EXTS = ['.cc', '.cpp', '.h', '.m', '.mm', '.proto', '.java', '.js']
GN_EXTS = ['.gn', '.gni', '.typemap'] GN_EXTS = ['.gn', '.gni', '.typemap']
parser.add_option('--full', action='store_true', parser.add_option('--full', action='store_true',
help='Reformat the full content of all touched files') help='Reformat the full content of all touched files')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment