Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F23009780
D6050.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
927 B
Referenced Files
None
Subscribers
None
D6050.diff
View Options
Index: src/lint/linter/ArcanistTextLinter.php
===================================================================
--- src/lint/linter/ArcanistTextLinter.php
+++ src/lint/linter/ArcanistTextLinter.php
@@ -16,6 +16,7 @@
const LINT_NO_COMMIT = 7;
private $maxLineLength = 80;
+ private $badCharsetsAllowed = false;
public function setMaxLineLength($new_length) {
$this->maxLineLength = $new_length;
@@ -26,6 +27,15 @@
return;
}
+ public function setBadCharsetsAllowed($allowed) {
+ $this->allowBadCharsets = $allowed;
+ return $this;
+ }
+
+ public function isBadCharsetsAllowed() {
+ return $this->allowBadCharsets;
+ }
+
public function getLinterName() {
return 'TXT';
}
@@ -137,6 +147,10 @@
}
protected function lintCharset($path) {
+ if ($this->allowBadCharsets) {
+ return;
+ }
+
$data = $this->getData($path);
$matches = null;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 9:14 PM (23 h, 35 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
17416676
Default Alt Text
D6050.diff (927 B)
Attached To
Mode
D6050: Adds an option to ArcanistTextLinter to permit non-ASCII charsets.
Attached
Detach File
Event Timeline
Log In to Comment