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

Issue 2738823003: webkitpy: Slightly adjusting pylintrc allow names. (Closed)

Created:
3 years, 9 months ago by mithro
Modified:
3 years, 9 months ago
Reviewers:
Dirk Pranke, qyearsley
CC:
blink-reviews, chromium-reviews, jeffcarp
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

webkitpy: Slightly adjusting pylintrc allow names. Justifications for each of the existing names have been added as well. This adds two more allowed cases; ----- with open(filename) as f: This is a very common pattern in Python as you can't use the more logical name "file" as it shadows the inbuilt file function (which is equivalent to open). Other names include fd. ----- try: .... exception XXXError as e: .... Another very common pattern in Python. Other names include err and exp. ----- Review-Url: https://codereview.chromium.org/2738823003 Cr-Commit-Position: refs/heads/master@{#455664} Committed: https://chromium.googlesource.com/chromium/src/+/3458e9e5a0092aaae6697435f2be3717a423766b

Patch Set 1 #

Patch Set 2 : webkitpy: Slightly adjusting pylintrc allow names. #

Total comments: 6

Patch Set 3 : Small fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/pylintrc View 1 2 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 16 (7 generated)
mithro
Hi Dirk / Quinten, I'm suggest these slight changes to the existing pylintrc. What do ...
3 years, 9 months ago (2017-03-08 04:02:57 UTC) #4
qyearsley
Seems reasonable to me, LGTM
3 years, 9 months ago (2017-03-08 05:03:15 UTC) #5
mithro
I'll wait for Dirk's thoughts before submitting.
3 years, 9 months ago (2017-03-08 05:21:56 UTC) #6
qyearsley
A couple quick nits https://codereview.chromium.org/2738823003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/pylintrc File third_party/WebKit/Tools/Scripts/webkitpy/pylintrc (right): https://codereview.chromium.org/2738823003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/pylintrc#newcode206 third_party/WebKit/Tools/Scripts/webkitpy/pylintrc:206: # These short names are ...
3 years, 9 months ago (2017-03-08 15:04:12 UTC) #7
Dirk Pranke
The suggested list is fine by me, but I tend to be very pro-short-name :). ...
3 years, 9 months ago (2017-03-08 21:08:30 UTC) #8
qyearsley
On 2017/03/08 at 21:08:30, dpranke wrote: > The suggested list is fine by me, but ...
3 years, 9 months ago (2017-03-09 00:14:39 UTC) #9
mithro
https://codereview.chromium.org/2738823003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/pylintrc File third_party/WebKit/Tools/Scripts/webkitpy/pylintrc (right): https://codereview.chromium.org/2738823003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/pylintrc#newcode206 third_party/WebKit/Tools/Scripts/webkitpy/pylintrc:206: # These short names are acceptable in the following ...
3 years, 9 months ago (2017-03-09 03:01:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2738823003/40001
3 years, 9 months ago (2017-03-09 03:01:56 UTC) #13
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 04:12:17 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/3458e9e5a0092aaae6697435f2be...

Powered by Google App Engine
This is Rietveld 408576698