}
}
- $text_paths = preg_grep('/\.(php|css|js|hpp|cpp|l|y)$/', $paths);
- $linters[] = id(new ArcanistGeneratedLinter())->setPaths($text_paths);
- $linters[] = id(new ArcanistNoLintLinter())->setPaths($text_paths);
- $linters[] = id(new ArcanistTextLinter())->setPaths($text_paths);
- $linters[] = id(new ArcanistSpellingLinter())->setPaths($text_paths);
+ $linters[] = id(new ArcanistGeneratedLinter())->setPaths($paths);
+ $linters[] = id(new ArcanistNoLintLinter())->setPaths($paths);
+ $linters[] = id(new ArcanistTextLinter())->setPaths($paths);
+ $linters[] = id(new ArcanistSpellingLinter())->setPaths($paths);
$php_paths = preg_grep('/\.php$/', $paths);
}
public function lintPath($path) {
+ if ($this->isBinaryFile($path)) {
+ return;
+ }
+
$data = $this->getData($path);
if (preg_match('/@'.'generated/', $data)) {
}
public function lintPath($path) {
+ if ($this->isBinaryFile($path)) {
+ return;
+ }
+
$data = $this->getData($path);
if (preg_match('/@'.'nolint/', $data)) {
}
public function lintPath($path) {
+ if ($this->isBinaryFile($path)) {
+ return;
+ }
+
foreach ($this->partialWordRules as $severity => $wordlist) {
if ($severity >= $this->severity) {
if (!$this->isCodeEnabled($severity)) {
}
public function lintPath($path) {
+ if ($this->isBinaryFile($path)) {
+ return;
+ }
+
if (!strlen($this->getData($path))) {
// If the file is empty, don't bother; particularly, don't require
// the user to add a newline.