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

Issue 23591027: Allow NOLINT to skip the std::abs PRESUBMIT check. (Closed)

Created:
7 years, 3 months ago by shawnsingh
Modified:
7 years, 3 months ago
Reviewers:
enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, kaanb
Visibility:
Public.

Description

Allow NOLINT to skip the std::abs PRESUBMIT check. shader code is one example where abs() without std:: is acceptable. But we still would like to generally keep the PRESUBMIT check that enforces all uses of abs() and related functions must be prefixed with "std::" So in order to prevent PRESUBMIT annoyances when we modify shader code or other similar situations, the regular expression for the presubmit is modified to recognize a "// NOLINT" comment. In that case, it ignores any un-prefixed abs() usage. BUG=261900 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221607

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -6 lines) Patch
M cc/PRESUBMIT.py View 1 1 chunk +11 lines, -5 lines 0 comments Download
M cc/output/shader.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
shawnsingh
PTAL, thanks in advance. I had to split the regex into pieces to abide by ...
7 years, 3 months ago (2013-09-05 00:40:24 UTC) #1
enne (OOO)
https://codereview.chromium.org/23591027/diff/1/cc/PRESUBMIT.py File cc/PRESUBMIT.py (right): https://codereview.chromium.org/23591027/diff/1/cc/PRESUBMIT.py#newcode86 cc/PRESUBMIT.py:86: no_nolint = "(?![^\\n]*// NOLINT)" Maybe \s+ instead of the ...
7 years, 3 months ago (2013-09-05 01:00:39 UTC) #2
shawnsingh
PTAL, feedback addressed, should be good to go.
7 years, 3 months ago (2013-09-05 22:29:26 UTC) #3
enne (OOO)
lgtm
7 years, 3 months ago (2013-09-05 23:29:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shawnsingh@chromium.org/23591027/10001
7 years, 3 months ago (2013-09-05 23:30:55 UTC) #5
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 06:33:35 UTC) #6
Message was sent while issue was closed.
Change committed as 221607

Powered by Google App Engine
This is Rietveld 408576698