Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15401884
D9029.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
871 B
Referenced Files
None
Subscribers
None
D9029.diff
View Options
diff --git a/src/lint/linter/ArcanistTextLinter.php b/src/lint/linter/ArcanistTextLinter.php
--- a/src/lint/linter/ArcanistTextLinter.php
+++ b/src/lint/linter/ArcanistTextLinter.php
@@ -23,11 +23,29 @@
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';
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 18, 7:38 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7706209
Default Alt Text
D9029.diff (871 B)
Attached To
Mode
D9029: Allow .arclint to configure max line length of text linter
Attached
Detach File
Event Timeline
Log In to Comment