]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Restore PEP8 errors.
authorJoshua Spence <josh@joshuaspence.com>
Sun, 15 Jun 2014 18:50:59 +0000 (04:50 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 15 Jun 2014 18:50:59 +0000 (04:50 +1000)
Summary: As per the TODO comment, now that `.arclint` is more mature, we should be able to restore PEP8 errors.

Test Plan: N/A

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9473

src/lint/linter/ArcanistPEP8Linter.php
src/lint/linter/__tests__/pep8/imports.lint-test

index bb93acb4a25243eb53c3a866b9afcd8114b7a440..0b19006d809ed23f59ea8124e43bab49562d9f94 100644 (file)
@@ -109,12 +109,7 @@ final class ArcanistPEP8Linter extends ArcanistExternalLinter {
     if (preg_match('/^W/', $code)) {
       return ArcanistLintSeverity::SEVERITY_WARNING;
     } else {
-
-      // TODO: Once severities/.arclint are more usable, restore this to
-      // "ERROR".
-      // return ArcanistLintSeverity::SEVERITY_ERROR;
-
-      return ArcanistLintSeverity::SEVERITY_WARNING;
+      return ArcanistLintSeverity::SEVERITY_ERROR;
     }
   }
 
index 54ef8efd6cfa980205cb9c3ad66cf71c0a293e34..cd9b2287a535eb1f056361795b11eb1f72f6417c 100644 (file)
@@ -1,3 +1,3 @@
 import os, sys
 ~~~~~~~~~~
-warning:1:10
+error:1:10