Summary: if we don't care and don't expect it to break all other linters then
continue
Test Plan: ##arc lint --trace## on a commit with non-ascii characters, saw other
linters continue
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, epriestley, cpiro
Differential Revision: 1122
return ArcanistLintSeverity::SEVERITY_ERROR;
}
+ public function isMessageEnabled($code) {
+ return ($this->getLintMessageSeverity($code) !==
+ ArcanistLintSeverity::SEVERITY_DISABLED);
+ }
+
public function getLintMessageName($code) {
$map = $this->getLintNameMap();
if (isset($map[$code])) {
self::LINT_DOS_NEWLINE,
'You must use ONLY Unix linebreaks ("\n") in source code.',
"\r");
- $this->stopAllLinters();
+ if ($this->isMessageEnabled(self::LINT_DOS_NEWLINE)) {
+ $this->stopAllLinters();
+ }
}
}
$string);
}
- $this->stopAllLinters();
+ if ($this->isMessageEnabled(self::LINT_BAD_CHARSET)) {
+ $this->stopAllLinters();
+ }
}
protected function lintTrailingWhitespace($path) {