]> khamidou — GitHub mirrors - arcanist.git/commit
Don't run disabled lint rules
authorvrana <jakubv@fb.com>
Thu, 14 Feb 2013 23:18:39 +0000 (15:18 -0800)
committervrana <jakubv@fb.com>
Thu, 14 Feb 2013 23:31:10 +0000 (15:31 -0800)
commiteb8b414cc73b9283a5558ad16dfa9d3ac598fe08
tree13e438914a5a2af78299caa305326459b711fc7f
parent39704f1e49f3a2e3453c2ca9cf8f9069b78b2aa0
Don't run disabled lint rules

Summary:
We always generate all messages and then filter them out based on minimum severity.
It's lots of useless work, especially in commit hook mode where we are interested only in errors.

Test Plan:
  $ arc lint --cache 0 --severity error ArcanistXHPASTLinter.php
  0.406 s before, 0.074 after

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4963
src/lint/ArcanistLintSeverity.php
src/lint/engine/ArcanistLintEngine.php
src/lint/linter/ArcanistLinter.php
src/lint/linter/ArcanistXHPASTLinter.php