Save blame info to lint messages

Test Plan:
Applied the patch.
Looked at blame and plain blame of SVN and Git file.
Ran the lint saver.
Looked at lint messages list.
/diffusion/lint/

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5218
This commit is contained in:
vrana
2013-03-04 16:22:30 -08:00
parent 8ec987dd2f
commit 1091dc7aa1
11 changed files with 178 additions and 69 deletions

View File

@@ -39,6 +39,10 @@ $args = id(new PhutilArgumentParser($argv))
'default' => 256,
'help' => "Number of paths passed to `arc` at once.",
),
array(
'name' => 'blame',
'help' => "Assign lint errors to authors who last modified the line.",
),
));
echo "Saving lint errors to database...\n";
@@ -48,6 +52,7 @@ $count = id(new DiffusionLintSaveRunner())
->setArc($args->getArg('arc'))
->setSeverity($args->getArg('severity'))
->setChunkSize($args->getArg('chunk-size'))
->setNeedsBlame($args->getArg('blame'))
->run('.');
echo "\nProcessed {$count} files.\n";