Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistTextLinter.php
Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | protected function lintCharset($path) { | ||||
} | } | ||||
} | } | ||||
protected function lintTrailingWhitespace($path) { | protected function lintTrailingWhitespace($path) { | ||||
$data = $this->getData($path); | $data = $this->getData($path); | ||||
$matches = null; | $matches = null; | ||||
$preg = preg_match_all( | $preg = preg_match_all( | ||||
'/ +$/m', | '/[[:blank:]]+$/m', | ||||
$data, | $data, | ||||
$matches, | $matches, | ||||
PREG_OFFSET_CAPTURE); | PREG_OFFSET_CAPTURE); | ||||
if (!$preg) { | if (!$preg) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |