Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPhpLinter.php
| Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | protected function getLintCodeFromLinterConfigurationKey($code) { | ||||
| switch (phutil_utf8_strtolower($code)) { | switch (phutil_utf8_strtolower($code)) { | ||||
| case 'parse': | case 'parse': | ||||
| return self::LINT_PARSE_ERROR; | return self::LINT_PARSE_ERROR; | ||||
| case 'fatal': | case 'fatal': | ||||
| return self::LINT_FATAL_ERROR; | return self::LINT_FATAL_ERROR; | ||||
| default: | default: | ||||
| throw new Exception(pht('Unrecognized lint message code "%s"', $code)); | throw new Exception(pht('Unrecognized lint message code: "%s"', $code)); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||