Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLintWorkflow.php
| Show First 20 Lines • Show All 280 Lines • ▼ Show 20 Lines | if (!$this->shouldLintAll) { | ||||
| // 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')); | ||||
| } | } | ||||
| } | } | ||||
| // Enable possible async linting only for 'arc diff' not 'arc lint' | |||||
| if ($this->getParentWorkflow()) { | |||||
| $engine->setEnableAsyncLint(true); | |||||
| } else { | |||||
| $engine->setEnableAsyncLint(false); | |||||
| } | |||||
| if ($this->getArgument('only-new')) { | if ($this->getArgument('only-new')) { | ||||
| $conduit = $this->getConduit(); | $conduit = $this->getConduit(); | ||||
| $api = $this->getRepositoryAPI(); | $api = $this->getRepositoryAPI(); | ||||
| if ($rev) { | if ($rev) { | ||||
| $api->setBaseCommit($rev); | $api->setBaseCommit($rev); | ||||
| } | } | ||||
| $svn_root = id(new PhutilURI($api->getSourceControlPath()))->getPath(); | $svn_root = id(new PhutilURI($api->getSourceControlPath()))->getPath(); | ||||
| ▲ Show 20 Lines • Show All 359 Lines • Show Last 20 Lines | |||||