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

Issue 2737963003: Update pylintrc to catch more style violations. (Closed)

Created:
3 years, 9 months ago by kjellander_webrtc
Modified:
3 years, 8 months ago
CC:
webrtc-reviews_webrtc.org, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Update pylintrc to catch more style violations. The current PyLint configuration doesn't catch violations to the Chromium Python Style Guide in a good way. This change adds mostly the correct style regex for functions and methods, with most content copied from https://cs.chromium.org/chromium/tools/depot_tools/pylintrc and (since the former disables invalid-name) https://cs.chromium.org/chromium/src/third_party/chromite/pylintrc Many settings are the defaults, but are now more explicit to make it easier to find them for our users. Also convert the previous one-line list of disabled lint check into a one-per-line list instead. Add import-error to the list of disabled lint checks. This CL depends on https://codereview.webrtc.org/2812273002/ to be landed first in order to not produce a lot of errors. BUG=webrtc:7303 NOTRY=True TESTED=git cl presubmit passing when tested in combination with https://codereview.webrtc.org/2812273002/ TBR=niklas.enbom@webrtc.org Review-Url: https://codereview.webrtc.org/2737963003 Cr-Commit-Position: refs/heads/master@{#17685} Committed: https://chromium.googlesource.com/external/webrtc/+/38c65c8fb481e2ee209ebc1b52460894787f7ae3

Patch Set 1 #

Patch Set 2 : Allow longer test methods and string module use #

Total comments: 21

Patch Set 3 : Cleanup #

Total comments: 2

Patch Set 4 : Relax function length to 60 chars #

Patch Set 5 : Added OWNERS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -5 lines) Patch
M OWNERS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M PRESUBMIT.py View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M pylintrc View 1 2 3 2 chunks +202 lines, -1 line 0 comments Download

Messages

Total messages: 22 (13 generated)
kjellander_webrtc
Since you requested this you get the honor to review it :) I plan to ...
3 years, 9 months ago (2017-03-08 20:06:51 UTC) #3
janssonWebRTC
https://codereview.webrtc.org/2737963003/diff/20001/pylintrc File pylintrc (right): https://codereview.webrtc.org/2737963003/diff/20001/pylintrc#newcode1 pylintrc:1: # Copyright (c) 2015 The WebRTC project authors. All ...
3 years, 9 months ago (2017-03-09 09:22:18 UTC) #4
kjellander_webrtc
Updated according to comments. I also removed a few accidentally disabled warnings compared to PS#2 ...
3 years, 9 months ago (2017-03-09 09:36:09 UTC) #5
janssonWebRTC
LGTM https://codereview.webrtc.org/2737963003/diff/20001/pylintrc File pylintrc (right): https://codereview.webrtc.org/2737963003/diff/20001/pylintrc#newcode1 pylintrc:1: # Copyright (c) 2015 The WebRTC project authors. ...
3 years, 9 months ago (2017-03-09 10:26:08 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2737963003/60001
3 years, 8 months ago (2017-04-12 19:18:31 UTC) #11
kjellander_webrtc
+niklas.enbom@webrtc.org for root approval since I also added an OWNERS change for pylintrc
3 years, 8 months ago (2017-04-12 19:21:05 UTC) #14
kjellander_webrtc
TBRing since I want this landed before the holiday and I don't want new errors ...
3 years, 8 months ago (2017-04-13 05:40:12 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2737963003/80001
3 years, 8 months ago (2017-04-13 05:40:25 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 05:43:45 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/external/webrtc/+/38c65c8fb481e2ee209ebc1b5...

Powered by Google App Engine
This is Rietveld 408576698