Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistTextLinter.php
| Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Lines | protected function lintTrailingWhitespace($path) { | ||||
| foreach ($matches[0] as $match) { | foreach ($matches[0] as $match) { | ||||
| list($string, $offset) = $match; | list($string, $offset) = $match; | ||||
| $this->raiseLintAtOffset( | $this->raiseLintAtOffset( | ||||
| $offset, | $offset, | ||||
| self::LINT_TRAILING_WHITESPACE, | self::LINT_TRAILING_WHITESPACE, | ||||
| pht( | pht( | ||||
| 'This line contains trailing whitespace. Consider setting '. | 'This line contains trailing whitespace. Consider setting '. | ||||
| 'up your editor to automatically remove trailing whitespace, '. | 'up your editor to automatically remove trailing whitespace.'), | ||||
| 'you will save time.'), | |||||
| $string, | $string, | ||||
| ''); | ''); | ||||
| } | } | ||||
| } | } | ||||
| protected function lintBOFWhitespace($path) { | protected function lintBOFWhitespace($path) { | ||||
| $data = $this->getData($path); | $data = $this->getData($path); | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||