Summary: Ref T6822.
Test Plan: Visual inspection. These methods are only called from within the `ArcanistExternalLinter` and `ArcanistLinter` subclasses.
Reviewers: chad, #blessed_reviewers, epriestley
Reviewed By: #blessed_reviewers, epriestley
Subscribers: Korvin, epriestley
Maniphest Tasks: T6822
Differential Revision: https://secure.phabricator.com/D11237
return 'csslint';
}
- public function getMandatoryFlags() {
+ protected function getMandatoryFlags() {
return array(
'--format=lint-xml',
'--quiet',
);
}
- public function getDefaultFlags() {
+ protected function getDefaultFlags() {
return $this->getDeprecatedConfiguration('lint.csslint.options', array());
}
parent::setLinterConfigurationValue($key, $value);
}
- public function getLintCodeFromLinterConfigurationKey($code) {
+ protected function getLintCodeFromLinterConfigurationKey($code) {
return $code;
}
return 'chmod';
}
- public function shouldLintBinaryFiles() {
+ protected function shouldLintBinaryFiles() {
return true;
}
return 'filename';
}
- public function shouldLintBinaryFiles() {
+ protected function shouldLintBinaryFiles() {
return true;
}
}
}
- public function shouldLintDirectories() {
+ protected function shouldLintDirectories() {
return true;
}
- public function shouldLintSymbolicLinks() {
+ protected function shouldLintSymbolicLinks() {
return true;
}
return 'flake8';
}
- public function getDefaultFlags() {
+ protected function getDefaultFlags() {
return $this->getDeprecatedConfiguration('lint.flake8.options', array());
}
return true;
}
- public function getMandatoryFlags() {
+ protected function getMandatoryFlags() {
return array('--json');
}
return 'pep8';
}
- public function getDefaultFlags() {
+ protected function getDefaultFlags() {
return $this->getDeprecatedConfiguration('lint.pep8.options', array());
}
return 'php';
}
- public function getMandatoryFlags() {
+ protected function getMandatoryFlags() {
return array('-l');
}
return pht('Install PHPCS with `pear install PHP_CodeSniffer`.');
}
- public function getDefaultFlags() {
+ protected function getDefaultFlags() {
$options = $this->getDeprecatedConfiguration('lint.phpcs.options', array());
$standard = $this->getDeprecatedConfiguration('lint.phpcs.standard');