mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 08:42:40 +01:00
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
This commit is contained in:
parent
3cfd58c29c
commit
10bcbf1f4b
1 changed files with 2 additions and 1 deletions
|
@ -56,14 +56,15 @@ class PhutilLintEngine extends ArcanistLintEngine {
|
||||||
private function getXHPASTSeverityMap() {
|
private function getXHPASTSeverityMap() {
|
||||||
$error = ArcanistLintSeverity::SEVERITY_ERROR;
|
$error = ArcanistLintSeverity::SEVERITY_ERROR;
|
||||||
$warning = ArcanistLintSeverity::SEVERITY_WARNING;
|
$warning = ArcanistLintSeverity::SEVERITY_WARNING;
|
||||||
|
$advice = ArcanistLintSeverity::SEVERITY_ADVICE;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
ArcanistXHPASTLinter::LINT_PHP_53_FEATURES => $error,
|
ArcanistXHPASTLinter::LINT_PHP_53_FEATURES => $error,
|
||||||
ArcanistXHPASTLinter::LINT_PHP_54_FEATURES => $error,
|
ArcanistXHPASTLinter::LINT_PHP_54_FEATURES => $error,
|
||||||
ArcanistXHPASTLinter::LINT_PHT_WITH_DYNAMIC_STRING => $error,
|
ArcanistXHPASTLinter::LINT_PHT_WITH_DYNAMIC_STRING => $error,
|
||||||
ArcanistXHPASTLinter::LINT_COMMENT_SPACING => $error,
|
ArcanistXHPASTLinter::LINT_COMMENT_SPACING => $error,
|
||||||
|
|
||||||
ArcanistXHPASTLinter::LINT_RAGGED_CLASSTREE_EDGE => $warning,
|
ArcanistXHPASTLinter::LINT_RAGGED_CLASSTREE_EDGE => $warning,
|
||||||
|
ArcanistXHPASTLinter::LINT_TODO_COMMENT => $advice,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue