Summary: It is more common for linters to exit with a non-zero status than it is for linters to return with a zero exit status, Really this function serves very little purposes, it simply determines whether or not to throw an exception if a non-zero status is returned by the external linter.
Test Plan: `arc unit`
Reviewers: chad, epriestley, #blessed_reviewers
Reviewed By: epriestley, #blessed_reviewers
Subscribers: Korvin, epriestley
Differential Revision: https://secure.phabricator.com/D11322
'npm install -g csslint');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
protected function parseLinterOutput($path, $err, $stdout, $stderr) {
$report_dom = new DOMDocument();
$ok = @$report_dom->loadXML($stdout);
'files/closure_linter-latest.tar.gz');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
public function supportsReadDataFromStdin() {
return false;
}
'npm install -g coffeelint');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
public function supportsReadDataFromStdin() {
return true;
}
array('-j2', '--enable=performance,style,portability,information'));
}
+ public function shouldExpectCommandErrors() {
+ return false;
+ }
+
protected function parseLinterOutput($path, $err, $stdout, $stderr) {
$dom = new DOMDocument();
$ok = @$dom->loadXML($stderr);
'googlecode.com/svn/trunk/cpplint/cpplint.py`.');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
public function supportsReadDataFromStdin() {
return true;
}
* @task bin
*/
public function shouldExpectCommandErrors() {
- return false;
+ return true;
}
/**
return pht('Install flake8 using `easy_install flake8`.');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
protected function parseLinterOutput($path, $err, $stdout, $stderr) {
$lines = phutil_split_lines($stdout, false);
return pht('Install Golint using `go get github.com/golang/lint/golint`.');
}
+ public function shouldExpectCommandErrors() {
+ return false;
+ }
+
protected function canCustomizeLintSeverities() {
return true;
}
return '-';
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
protected function getMandatoryFlags() {
return array('--json');
}
return pht('Install JSHint using `npm install -g jshint`.');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
public function supportsReadDataFromStdin() {
return true;
}
return pht('Install jsonlint using `npm install -g jsonlint`.');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
public function supportsReadDataFromStdin() {
return true;
}
return pht('Install JSCS using `npm install -g jscs`.');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
protected function getMandatoryFlags() {
$options = array();
return pht('Install lessc using `npm install -g less`.');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
public function supportsReadDataFromStdin() {
// Technically `lessc` can read data from standard input however, when doing
// so, relative imports cannot be resolved. Therefore, this functionality is
return pht('Install PEP8 using `easy_install pep8`.');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
protected function parseLinterOutput($path, $err, $stdout, $stderr) {
$lines = phutil_split_lines($stdout, false);
return $stdout;
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
public function supportsReadDataFromStdin() {
return false;
}
}
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
public function supportsReadDataFromStdin() {
return true;
}
'gem install puppet-lint');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
protected function getMandatoryFlags() {
return array(
'--error-level=all',
return pht('Install pyflakes with `pip install pyflakes`.');
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
public function supportsReadDataFromStdin() {
return true;
}
return true;
}
- public function shouldExpectCommandErrors() {
- return true;
- }
-
protected function getMandatoryFlags() {
// -w: turn on warnings
// -c: check syntax