Changeset View
Changeset View
Standalone View
Standalone View
arcanist/linter/LocalDependenceLinter.php
<?php | <?php | ||||
/** | /** | ||||
* Uses the lint-locale-dependence.sh script to output a linting error when | * Uses the lint-locale-dependence.sh script to output a linting error when | ||||
* functions relying on the system locale are used. | * functions relying on the system locale are used. | ||||
*/ | */ | ||||
final class LocaleDependenceLinter extends ArcanistExternalLinter { | final class LocaleDependenceLinter extends ArcanistExternalLinter { | ||||
const ADVICE_MESSAGE = | const ADVICE_MESSAGE = <<<ADVICE | ||||
'Unnecessary locale dependence can cause bugs and should be avoided. '. | Unnecessary locale dependence can cause bugs and should be avoided. | ||||
'Otherwise an exception can be added to the lint-locale-dependence script.'; | Otherwise an exception can be added to the lint-locale-dependence script. | ||||
ADVICE; | |||||
public function getInfoName() { | public function getInfoName() { | ||||
return 'lint-locale-dependence'; | return 'lint-locale-dependence'; | ||||
} | } | ||||
public function getInfoURI() { | public function getInfoURI() { | ||||
return ''; | return ''; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |