Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/__tests__/ArcanistLinterTestCase.php
Show All 20 Lines | abstract class ArcanistLinterTestCase extends PhutilTestCase { | ||||
} | } | ||||
abstract public function testLinter(); | abstract public function testLinter(); | ||||
/** | /** | ||||
* Executes all tests from the specified subdirectory. If a linter is not | * Executes all tests from the specified subdirectory. If a linter is not | ||||
* explicitly specified, it will be inferred from the name of the test class. | * explicitly specified, it will be inferred from the name of the test class. | ||||
*/ | */ | ||||
protected function executeTestsInDirectory($root) { | protected function executeTestsInDirectory($root, ArcanistLinter $linter = null) { | ||||
Lint: Line Too Long: This line is 84 characters long, but the convention is 80 characters. | |||||
$linter = $this->getLinter(); | $linter = coalesce($linter, $this->getLinter()); | ||||
$files = id(new FileFinder($root)) | $files = id(new FileFinder($root)) | ||||
->withType('f') | ->withType('f') | ||||
->withSuffix('lint-test') | ->withSuffix('lint-test') | ||||
->find(); | ->find(); | ||||
$test_count = 0; | $test_count = 0; | ||||
foreach ($files as $file) { | foreach ($files as $file) { | ||||
▲ Show 20 Lines • Show All 288 Lines • Show Last 20 Lines |
This line is 84 characters long, but the convention is 80 characters.