diff --git a/src/lint/linter/ArcanistTextLinter.php b/src/lint/linter/ArcanistTextLinter.php index 9042207e..3b6ee659 100644 --- a/src/lint/linter/ArcanistTextLinter.php +++ b/src/lint/linter/ArcanistTextLinter.php @@ -23,11 +23,29 @@ final class ArcanistTextLinter extends ArcanistLinter { return 0.5; } + public function getLinterConfigurationOptions() { + $options = array( + 'text.max-line-length' => 'optional int', + ); + + return $options + parent::getLinterConfigurationOptions(); + } + public function setMaxLineLength($new_length) { $this->maxLineLength = $new_length; return $this; } + public function setLinterConfigurationValue($key, $value) { + switch ($key) { + case 'text.max-line-length': + $this->setMaxLineLength($value); + return; + } + + return parent::setLinterConfigurationValue($key, $value); + } + public function getLinterName() { return 'TXT'; }