Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLintWorkflow.php
| Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | public function run() { | ||||
| $engine->setMinimumSeverity( | $engine->setMinimumSeverity( | ||||
| $this->getArgument('severity', self::DEFAULT_SEVERITY)); | $this->getArgument('severity', self::DEFAULT_SEVERITY)); | ||||
| // Propagate information about which lines changed to the lint engine. | // Propagate information about which lines changed to the lint engine. | ||||
| // This is used so that the lint engine can drop warning messages | // This is used so that the lint engine can drop warning messages | ||||
| // concerning lines that weren't in the change. | // concerning lines that weren't in the change. | ||||
| $engine->setPaths($paths); | $engine->setPaths($paths); | ||||
| if ($lint_all) { | if (!$lint_all) { | ||||
| foreach ($paths as $path) { | foreach ($paths as $path) { | ||||
| // Note that getChangedLines() returns null to indicate that a file | // Note that getChangedLines() returns null to indicate that a file | ||||
| // is binary or a directory (i.e., changed lines are not relevant). | // is binary or a directory (i.e., changed lines are not relevant). | ||||
| $engine->setPathChangedLines( | $engine->setPathChangedLines( | ||||
| $path, | $path, | ||||
| $this->getChangedLines($path, 'new')); | $this->getChangedLines($path, 'new')); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines | |||||