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

Issue 43017: Add end of file newline checks to PRESUBMIT.py. (Closed)

Created:
11 years, 9 months ago by Dean McNamee
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add end of file newline checks to PRESUBMIT.py. This makes sure that: - Files end in a newline character, this is otherwise a fatal error with GCC. - Files end in only one newline character, and not a bunch of whitespace.

Patch Set 1 #

Patch Set 2 : Only check for \n if the file isn't empty. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -6 lines) Patch
M PRESUBMIT.py View 1 3 chunks +10 lines, -0 lines 0 comments Download
M PRESUBMIT_unittest.py View 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Dean McNamee
11 years, 9 months ago (2009-03-10 13:44:08 UTC) #1
M-A Ruel
11 years, 9 months ago (2009-03-10 13:49:01 UTC) #2
lgtm

Powered by Google App Engine
This is Rietveld 408576698