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

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

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: more options 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..4d25b73988ff076891c1c64af83459d3a7d2de10 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: false
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+SpacesInContainerLiterals: false
+SpacesInSquareBrackets: false

Powered by Google App Engine
This is Rietveld 408576698