1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 16:52:40 +01:00

Fix visibility of various ArcanistLinter methods

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
This commit is contained in:
Joshua Spence 2015-01-07 07:36:07 +11:00
parent c70009d90f
commit 828fb41ea7
9 changed files with 12 additions and 12 deletions

View file

@ -25,14 +25,14 @@ final class ArcanistCSSLintLinter extends ArcanistExternalLinter {
return 'csslint'; return 'csslint';
} }
public function getMandatoryFlags() { protected function getMandatoryFlags() {
return array( return array(
'--format=lint-xml', '--format=lint-xml',
'--quiet', '--quiet',
); );
} }
public function getDefaultFlags() { protected function getDefaultFlags() {
return $this->getDeprecatedConfiguration('lint.csslint.options', array()); return $this->getDeprecatedConfiguration('lint.csslint.options', array());
} }

View file

@ -54,7 +54,7 @@ final class ArcanistCSharpLinter extends ArcanistLinter {
parent::setLinterConfigurationValue($key, $value); parent::setLinterConfigurationValue($key, $value);
} }
public function getLintCodeFromLinterConfigurationKey($code) { protected function getLintCodeFromLinterConfigurationKey($code) {
return $code; return $code;
} }

View file

@ -27,7 +27,7 @@ final class ArcanistChmodLinter extends ArcanistLinter {
return 'chmod'; return 'chmod';
} }
public function shouldLintBinaryFiles() { protected function shouldLintBinaryFiles() {
return true; return true;
} }

View file

@ -25,7 +25,7 @@ final class ArcanistFilenameLinter extends ArcanistLinter {
return 'filename'; return 'filename';
} }
public function shouldLintBinaryFiles() { protected function shouldLintBinaryFiles() {
return true; return true;
} }
@ -45,11 +45,11 @@ final class ArcanistFilenameLinter extends ArcanistLinter {
} }
} }
public function shouldLintDirectories() { protected function shouldLintDirectories() {
return true; return true;
} }
public function shouldLintSymbolicLinks() { protected function shouldLintSymbolicLinks() {
return true; return true;
} }

View file

@ -28,7 +28,7 @@ final class ArcanistFlake8Linter extends ArcanistExternalLinter {
return 'flake8'; return 'flake8';
} }
public function getDefaultFlags() { protected function getDefaultFlags() {
return $this->getDeprecatedConfiguration('lint.flake8.options', array()); return $this->getDeprecatedConfiguration('lint.flake8.options', array());
} }

View file

@ -45,7 +45,7 @@ final class ArcanistHLintLinter extends ArcanistExternalLinter {
return true; return true;
} }
public function getMandatoryFlags() { protected function getMandatoryFlags() {
return array('--json'); return array('--json');
} }

View file

@ -27,7 +27,7 @@ final class ArcanistPEP8Linter extends ArcanistExternalLinter {
return 'pep8'; return 'pep8';
} }
public function getDefaultFlags() { protected function getDefaultFlags() {
return $this->getDeprecatedConfiguration('lint.pep8.options', array()); return $this->getDeprecatedConfiguration('lint.pep8.options', array());
} }

View file

@ -26,7 +26,7 @@ final class ArcanistPhpLinter extends ArcanistExternalLinter {
return 'php'; return 'php';
} }
public function getMandatoryFlags() { protected function getMandatoryFlags() {
return array('-l'); return array('-l');
} }

View file

@ -37,7 +37,7 @@ final class ArcanistPhpcsLinter extends ArcanistExternalLinter {
return pht('Install PHPCS with `pear install PHP_CodeSniffer`.'); return pht('Install PHPCS with `pear install PHP_CodeSniffer`.');
} }
public function getDefaultFlags() { protected function getDefaultFlags() {
$options = $this->getDeprecatedConfiguration('lint.phpcs.options', array()); $options = $this->getDeprecatedConfiguration('lint.phpcs.options', array());
$standard = $this->getDeprecatedConfiguration('lint.phpcs.standard'); $standard = $this->getDeprecatedConfiguration('lint.phpcs.standard');