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

Unified Diff: Tools/Scripts/webkitpy/style/checkers/cpp.py

Issue 609633004: Eliminate style rule about one space after punctuation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/Scripts/webkitpy/style/checkers/cpp.py
diff --git a/Tools/Scripts/webkitpy/style/checkers/cpp.py b/Tools/Scripts/webkitpy/style/checkers/cpp.py
index ad18e0c781833c119fcc5edb363088ac5a595a6b..a5a724d1dd07017f4e3e5684bc23e16c57e2ab27 100644
--- a/Tools/Scripts/webkitpy/style/checkers/cpp.py
+++ b/Tools/Scripts/webkitpy/style/checkers/cpp.py
@@ -1942,11 +1942,6 @@ def check_spacing(file_extension, clean_lines, line_number, error):
error(line_number, 'whitespace/comments', 4,
'Should have a space between // and comment')
- # There should only be one space after punctuation in a comment.
- if search(r'[.!?,;:]\s\s+\w', line[comment_position:]):
- error(line_number, 'whitespace/comments', 5,
- 'Should have only a single space after a punctuation in a comment.')
-
line = clean_lines.elided[line_number] # get rid of comments and strings
# Don't try to do spacing checks for operator methods
« no previous file with comments | « no previous file | Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698