Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistTextLinter.php
| Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | final class ArcanistTextLinter extends ArcanistLinter { | ||||
| } | } | ||||
| protected function lintEOFNewline($path) { | protected function lintEOFNewline($path) { | ||||
| $data = $this->getData($path); | $data = $this->getData($path); | ||||
| if (!strlen($data) || $data[strlen($data) - 1] != "\n") { | if (!strlen($data) || $data[strlen($data) - 1] != "\n") { | ||||
| $this->raiseLintAtOffset( | $this->raiseLintAtOffset( | ||||
| strlen($data), | strlen($data), | ||||
| self::LINT_EOF_NEWLINE, | self::LINT_EOF_NEWLINE, | ||||
| "Files must end in a newline.", | 'Files must end in a newline.', | ||||
| '', | '', | ||||
| "\n"); | "\n"); | ||||
| } | } | ||||
| } | } | ||||
| protected function lintCharset($path) { | protected function lintCharset($path) { | ||||
| $data = $this->getData($path); | $data = $this->getData($path); | ||||
| ▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines | |||||