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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/formatter/main.py

Issue 2014063002: Run format-webkit on webkitpy code (without string conversion). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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/WebKit/Tools/Scripts/webkitpy/formatter/main.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/formatter/main.py b/third_party/WebKit/Tools/Scripts/webkitpy/formatter/main.py
index 92dbfa070061799e935f73a296629e691cc8575a..c39212e8196010240e64151be1ef12eff0ad5ef2 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/formatter/main.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/formatter/main.py
@@ -56,14 +56,20 @@ def main(host=None, args=None):
def _autopep8_options_for_style(style):
return {
None: [],
- 'blink': autopep8.parse_args(['--aggressive',
- '--max-line-length', '132',
- '--indent-size', '4',
- '']),
- 'chromium': autopep8.parse_args(['--aggressive',
- '--max-line-length', '80',
- '--indent-size', '2',
- '']),
+ 'blink': autopep8.parse_args([
+ '--aggressive',
+ '--max-line-length', '132',
+ '--ignore=E309',
+ '--indent-size', '4',
+ '',
+ ]),
+ 'chromium': autopep8.parse_args([
+ '--aggressive',
+ '--max-line-length', '80',
+ '--ignore=E309',
+ '--indent-size', '2',
+ '',
+ ]),
}.get(style)

Powered by Google App Engine
This is Rietveld 408576698