Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPhutilXHPASTLinter.php
| Show All 33 Lines | final class ArcanistPhutilXHPASTLinter extends ArcanistBaseXHPASTLinter { | ||||
| public function setDynamicStringClasses(array $map) { | public function setDynamicStringClasses(array $map) { | ||||
| $this->dynamicStringClasses = $map; | $this->dynamicStringClasses = $map; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getLintNameMap() { | public function getLintNameMap() { | ||||
| return array( | return array( | ||||
| self::LINT_ARRAY_COMBINE => pht( | self::LINT_ARRAY_COMBINE => pht( | ||||
| '%s Unreliable', | '%s Unreliable', 'array_combine()'), | ||||
| 'array_combine()'), | |||||
| self::LINT_DEPRECATED_FUNCTION => pht( | self::LINT_DEPRECATED_FUNCTION => pht( | ||||
| 'Use of Deprecated Function'), | 'Use of Deprecated Function'), | ||||
| self::LINT_UNSAFE_DYNAMIC_STRING => pht( | self::LINT_UNSAFE_DYNAMIC_STRING => pht( | ||||
| 'Unsafe Usage of Dynamic String'), | 'Unsafe Usage of Dynamic String'), | ||||
| self::LINT_RAGGED_CLASSTREE_EDGE => pht( | self::LINT_RAGGED_CLASSTREE_EDGE => pht( | ||||
| 'Class Not %s Or %s', | 'Class Not %s Or %s', 'abstract', 'final'), | ||||
| 'abstract', | |||||
| 'final'), | |||||
| ); | ); | ||||
| } | } | ||||
| public function getLintSeverityMap() { | public function getLintSeverityMap() { | ||||
| $warning = ArcanistLintSeverity::SEVERITY_WARNING; | $warning = ArcanistLintSeverity::SEVERITY_WARNING; | ||||
| return array( | return array( | ||||
| self::LINT_ARRAY_COMBINE => $warning, | self::LINT_ARRAY_COMBINE => $warning, | ||||
| self::LINT_DEPRECATED_FUNCTION => $warning, | self::LINT_DEPRECATED_FUNCTION => $warning, | ||||
| ▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines | |||||