From: vrana Date: Wed, 21 Nov 2012 23:30:42 +0000 (-0800) Subject: Emit advice for TODO in Phutil linter X-Git-Tag: conduit-6~15 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=10bcbf1f4bf8900338eac16bee1a4f852935d111;p=arcanist.git Emit advice for TODO in Phutil linter Summary: Let's try this. It may be useful to see this together in Differential overview. Test Plan: Linted a file with TODO. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T744 Differential Revision: https://secure.phabricator.com/D4014 --- diff --git a/src/lint/engine/PhutilLintEngine.php b/src/lint/engine/PhutilLintEngine.php index 360b6ca2..0c806b79 100644 --- a/src/lint/engine/PhutilLintEngine.php +++ b/src/lint/engine/PhutilLintEngine.php @@ -56,14 +56,15 @@ class PhutilLintEngine extends ArcanistLintEngine { private function getXHPASTSeverityMap() { $error = ArcanistLintSeverity::SEVERITY_ERROR; $warning = ArcanistLintSeverity::SEVERITY_WARNING; + $advice = ArcanistLintSeverity::SEVERITY_ADVICE; return array( ArcanistXHPASTLinter::LINT_PHP_53_FEATURES => $error, ArcanistXHPASTLinter::LINT_PHP_54_FEATURES => $error, ArcanistXHPASTLinter::LINT_PHT_WITH_DYNAMIC_STRING => $error, ArcanistXHPASTLinter::LINT_COMMENT_SPACING => $error, - ArcanistXHPASTLinter::LINT_RAGGED_CLASSTREE_EDGE => $warning, + ArcanistXHPASTLinter::LINT_TODO_COMMENT => $advice, ); } }