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

Issue 11779037: Warn when committing code with http:// URLs. (Closed)

Created:
7 years, 11 months ago by palmer
Modified:
7 years, 11 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Warn when committing code with http:// URLs. We prefer HTTPS for everything, to the extent possible. NOTRY=true BUG=156396 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176986

Patch Set 1 #

Total comments: 6

Patch Set 2 : Enable the exclusion_pattern to stop false positives. Add a TODO about it. #

Patch Set 3 : Fix style per maruel. #

Patch Set 4 : Tune the RE and line # printing. Oh, and call the function. #

Patch Set 5 : Add back the blacklist to reduce false positives due to tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -28 lines) Patch
M PRESUBMIT.py View 1 2 3 4 8 chunks +77 lines, -28 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
palmer
This is my first time making a presubmit rule, so I figure I've done it ...
7 years, 11 months ago (2013-01-08 02:37:50 UTC) #1
M-A Ruel
You may want a test but I don't mind. https://codereview.chromium.org/11779037/diff/1/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/11779037/diff/1/PRESUBMIT.py#newcode241 PRESUBMIT.py:241: ...
7 years, 11 months ago (2013-01-08 02:51:11 UTC) #2
palmer
> Why not http:// ? On the general principle of maximum matching/maximum paranoia. For example, ...
7 years, 11 months ago (2013-01-08 21:05:40 UTC) #3
palmer
Ping?
7 years, 11 months ago (2013-01-15 00:14:03 UTC) #4
M-A Ruel
lgtm
7 years, 11 months ago (2013-01-15 00:36:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/palmer@chromium.org/11779037/14001
7 years, 11 months ago (2013-01-15 22:10:45 UTC) #6
commit-bot: I haz the power
Change committed as 176986
7 years, 11 months ago (2013-01-15 22:20:46 UTC) #7
nduca
This is breaking tools/telemetry/ where this sort of thing is perfectly acceptable. Please advise.
7 years, 11 months ago (2013-01-16 02:32:47 UTC) #8
palmer
7 years, 11 months ago (2013-01-16 18:36:27 UTC) #9
Message was sent while issue was closed.
> This is breaking tools/telemetry/ where this sort of thing is perfectly
> acceptable. Please advise.

It shouldn't break anything; when committing, it only nags you but does not
prompt:

 254   if problems:
 255     if input_api.is_committing:
 256       # We don't warn on commit, to avoid stopping commits going through
CQ.
 257       return [output_api.PresubmitNotifyResult(_HTTPS_ONLY_WARNING,
problems)]
 258     else:
 259       return [output_api.PresubmitPromptWarning(_HTTPS_ONLY_WARNING,
problems)]

If you are sure the nags are all false positives, you don't have to worry about
it. From a quick skim it looks like they are.

Powered by Google App Engine
This is Rietveld 408576698