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

Unified Diff: ui/webui/resources/.clang-format

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: update c/b/r/ as well Created 4 years 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: ui/webui/resources/.clang-format
diff --git a/ui/webui/resources/.clang-format b/ui/webui/resources/.clang-format
index d27bf2ea348ca22a9b98e08007e1c791a080ecb3..8fd4c4a3b70657b74614bf8fe7d200db5db458b4 100644
--- a/ui/webui/resources/.clang-format
+++ b/ui/webui/resources/.clang-format
@@ -3,3 +3,11 @@ BasedOnStyle: Chromium
# Renaming quotes in <include> and <if> break things.
# For normal JS code, please prefer ' to ".
JavaScriptQuotes: Leave
+
+AllowShortBlocksOnASingleLine: false
+AllowShortCaseLabelsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: Empty
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+SpacesInContainerLiterals: false
+SpacesInSquareBrackets: false
« no previous file with comments | « chrome/browser/resources/.clang-format ('k') | ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698