From 80da1354daa6b063a1ed05dd57bb5b8f416e4607 Mon Sep 17 00:00:00 2001 From: grglr Date: Fri, 24 Jun 2011 17:19:42 -0700 Subject: [PATCH] Ignore redundant PEP8 lint rule: W293 Summary: W293 reports a lint warning for the same problem that TXT6 reports a lint error for. This isn't so terrible in and of itself. However, when you are then prompted to apply a patch to fix TXT6, lint doesn't realize that the W293 warning was also handled, and still prompts you about ignoring unresolved warnings. This is misleading. Test Plan: > python pep8.py hasBlankLineWS.py hasBlankLineWS.py:3:1: W293 blank line contains whitespace > python pep8.py --ignore=W293 hasBlankLineWS.py (no output) Reviewed By: epriestley Reviewers: jungejason, epriestley CC: epriestley, aran Differential Revision: 525 --- src/lint/linter/pep8/ArcanistPEP8Linter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lint/linter/pep8/ArcanistPEP8Linter.php b/src/lint/linter/pep8/ArcanistPEP8Linter.php index 978d1b80..92343255 100644 --- a/src/lint/linter/pep8/ArcanistPEP8Linter.php +++ b/src/lint/linter/pep8/ArcanistPEP8Linter.php @@ -41,7 +41,9 @@ class ArcanistPEP8Linter extends ArcanistLinter { } public function getPEP8Options() { - return null; + // W293 (blank line contains whitespace) is redundant when used + // alongside TXT6, causing pain to python programmers. + return '--ignore=W293'; } public function lintPath($path) { -- 2.43.0