public function getLintSeverityMap() {
return array(
- self::LINT_TODO_COMMENT => ArcanistLintSeverity::SEVERITY_ADVICE,
+ self::LINT_TODO_COMMENT => ArcanistLintSeverity::SEVERITY_DISABLED,
self::LINT_UNABLE_TO_PARSE
=> ArcanistLintSeverity::SEVERITY_WARNING,
self::LINT_NAMING_CONVENTIONS
'less-context' => null,
'apply-patches' => '--raw disables lint.',
'never-apply-patches' => '--raw disables lint.',
- 'advice' => '--raw disables lint.',
'lintall' => '--raw disables lint.',
'create' => '--raw and --create both need stdin. '.
'less-context' => null,
'apply-patches' => '--raw-command disables lint.',
'never-apply-patches' => '--raw-command disables lint.',
- 'advice' => '--raw-command disables lint.',
'lintall' => '--raw-command disables lint.',
),
),
"Do not run lint.",
'conflicts' => array(
'lintall' => '--nolint suppresses lint.',
- 'advice' => '--nolint suppresses lint.',
'apply-patches' => '--nolint suppresses lint.',
'never-apply-patches' => '--nolint suppresses lint.',
),
'message' => '--only does not affect revisions.',
'edit' => '--only does not affect revisions.',
'lintall' => '--only suppresses lint.',
- 'advice' => '--only suppresses lint.',
'apply-patches' => '--only suppresses lint.',
'never-apply-patches' => '--only suppresses lint.',
),
'lint' => true,
),
),
- 'advice' => array(
- 'help' =>
- "Raise lint advice in addition to lint warnings and errors.",
- 'passthru' => array(
- 'lint' => true,
- ),
- ),
'apply-patches' => array(
'help' =>
'Apply patches suggested by lint to the working copy without '.
"With 'json', show lint warnings in machine-readable JSON format. ".
"With 'compiler', show lint warnings in suitable for your editor."
),
- 'advice' => array(
- 'help' =>
- "Show lint advice, not just warnings and errors."
- ),
'engine' => array(
'param' => 'classname',
'help' =>
$this->engine = $engine;
$engine->setWorkingCopy($working_copy);
- if ($this->getArgument('advice')) {
- $engine->setMinimumSeverity(ArcanistLintSeverity::SEVERITY_ADVICE);
- } else {
- $engine->setMinimumSeverity(ArcanistLintSeverity::SEVERITY_AUTOFIX);
- }
+ $engine->setMinimumSeverity(ArcanistLintSeverity::SEVERITY_ADVICE);
// Propagate information about which lines changed to the lint engine.
// This is used so that the lint engine can drop warning messages