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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user