mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +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:
parent
c70009d90f
commit
828fb41ea7
9 changed files with 12 additions and 12 deletions
|
@ -25,14 +25,14 @@ final class ArcanistCSSLintLinter extends ArcanistExternalLinter {
|
|||
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());
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ final class ArcanistCSharpLinter extends ArcanistLinter {
|
|||
parent::setLinterConfigurationValue($key, $value);
|
||||
}
|
||||
|
||||
public function getLintCodeFromLinterConfigurationKey($code) {
|
||||
protected function getLintCodeFromLinterConfigurationKey($code) {
|
||||
return $code;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ final class ArcanistChmodLinter extends ArcanistLinter {
|
|||
return 'chmod';
|
||||
}
|
||||
|
||||
public function shouldLintBinaryFiles() {
|
||||
protected function shouldLintBinaryFiles() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ final class ArcanistFilenameLinter extends ArcanistLinter {
|
|||
return 'filename';
|
||||
}
|
||||
|
||||
public function shouldLintBinaryFiles() {
|
||||
protected function shouldLintBinaryFiles() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -45,11 +45,11 @@ final class ArcanistFilenameLinter extends ArcanistLinter {
|
|||
}
|
||||
}
|
||||
|
||||
public function shouldLintDirectories() {
|
||||
protected function shouldLintDirectories() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function shouldLintSymbolicLinks() {
|
||||
protected function shouldLintSymbolicLinks() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ final class ArcanistFlake8Linter extends ArcanistExternalLinter {
|
|||
return 'flake8';
|
||||
}
|
||||
|
||||
public function getDefaultFlags() {
|
||||
protected function getDefaultFlags() {
|
||||
return $this->getDeprecatedConfiguration('lint.flake8.options', array());
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ final class ArcanistHLintLinter extends ArcanistExternalLinter {
|
|||
return true;
|
||||
}
|
||||
|
||||
public function getMandatoryFlags() {
|
||||
protected function getMandatoryFlags() {
|
||||
return array('--json');
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ final class ArcanistPEP8Linter extends ArcanistExternalLinter {
|
|||
return 'pep8';
|
||||
}
|
||||
|
||||
public function getDefaultFlags() {
|
||||
protected function getDefaultFlags() {
|
||||
return $this->getDeprecatedConfiguration('lint.pep8.options', array());
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ final class ArcanistPhpLinter extends ArcanistExternalLinter {
|
|||
return 'php';
|
||||
}
|
||||
|
||||
public function getMandatoryFlags() {
|
||||
protected function getMandatoryFlags() {
|
||||
return array('-l');
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ final class ArcanistPhpcsLinter extends ArcanistExternalLinter {
|
|||
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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue