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

Issue 202773002: Presubmit check improvements. (Closed)

Created:
6 years, 9 months ago by szager1
Modified:
6 years, 9 months ago
Reviewers:
agable, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Presubmit check improvements. - Don't pylint files in .gitignore or .git/info/excludes - Print full path to modules in pylint. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=257672

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -2 lines) Patch
M PRESUBMIT.py View 1 2 chunks +13 lines, -0 lines 2 comments Download
M third_party/pylint/reporters/text.py View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
szager1
6 years, 9 months ago (2014-03-17 23:33:38 UTC) #1
agable
lgtm
6 years, 9 months ago (2014-03-18 17:11:51 UTC) #2
szager1
The CQ bit was checked by szager@chromium.org
6 years, 9 months ago (2014-03-18 17:21:29 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szager@chromium.org/202773002/10003
6 years, 9 months ago (2014-03-18 17:21:35 UTC) #4
commit-bot: I haz the power
Change committed as 257672
6 years, 9 months ago (2014-03-18 17:23:55 UTC) #5
M-A Ruel
6 years, 9 months ago (2014-03-18 19:29:15 UTC) #6
Message was sent while issue was closed.
IMHO, the fix would be to create a function in InputApi to get the lists of all
the files in the repo. It was not done before because svn is slow to do this,
but git ls-files is fine so it would be doable.

https://codereview.chromium.org/202773002/diff/10003/PRESUBMIT.py
File PRESUBMIT.py (right):

https://codereview.chromium.org/202773002/diff/10003/PRESUBMIT.py#newcode12
PRESUBMIT.py:12: import os
Not needed.

https://codereview.chromium.org/202773002/diff/10003/PRESUBMIT.py#newcode25
PRESUBMIT.py:25: if os.path.exists('.gitignore'):
input_api.os_path.exists

Powered by Google App Engine
This is Rietveld 408576698