Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F19506693
D6050.id13479.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
927 B
Referenced Files
None
Subscribers
None
D6050.id13479.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
Sat, Jan 10, 4:50 PM (3 d, 20 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8403388
Default Alt Text
D6050.id13479.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