2 // Copyright 2015-present Facebook. All Rights Reserved.
3 // This source code is licensed under the BSD-style license found in the
4 // LICENSE file in the root directory of this source tree. An additional grant
5 // of patent rights can be found in the PATENTS file in the same directory.
7 final class FacebookHowtoevenLintEngine
extends ArcanistLintEngine
{
9 public function buildLinters() {
12 foreach ($this->getPaths() as $path) {
13 // Don't try to lint deleted files or changed directories.
14 if (!Filesystem
::pathExists($path) ||
is_dir($path)) {
18 if (preg_match('/\.(cpp|c|cc|cxx|h|hh|hpp|hxx|tcc)$/', $path)) {
23 $howtoeven = new FacebookHowtoevenLinter();
24 $howtoeven->setPaths($paths);
25 return array($howtoeven);