Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistConduitLinter.php
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | final class ArcanistConduitLinter extends ArcanistLinter { | ||||
public function getLintSeverityMap() { | public function getLintSeverityMap() { | ||||
// The rationale here is that this class will only be used for custom | // The rationale here is that this class will only be used for custom | ||||
// linting in installations. No two server endpoints will be the same across | // linting in installations. No two server endpoints will be the same across | ||||
// different instantiations. Therefore, the server can handle all severity | // different instantiations. Therefore, the server can handle all severity | ||||
// customization directly. | // customization directly. | ||||
throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
'ArcanistConduitLinter does not support client-side severity '. | 'ArcanistConduitLinter does not support client-side severity '. | ||||
'customization.' | 'customization.'); | ||||
); | |||||
} | } | ||||
public function getLintNameMap() { | public function getLintNameMap() { | ||||
// See getLintSeverityMap for rationale. | // See getLintSeverityMap for rationale. | ||||
throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
'ArcanistConduitLinter does not support a name map.' | 'ArcanistConduitLinter does not support a name map.'); | ||||
); | |||||
} | } | ||||
protected function canCustomizeLintSeverities() { | protected function canCustomizeLintSeverities() { | ||||
return false; | return false; | ||||
} | } | ||||
} | } |