mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +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';
|
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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ final class ArcanistChmodLinter extends ArcanistLinter {
|
||||||
return 'chmod';
|
return 'chmod';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function shouldLintBinaryFiles() {
|
protected function shouldLintBinaryFiles() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue