diff --git a/arcanist/linter/FileNameLinter.php b/arcanist/linter/FileNameLinter.php --- a/arcanist/linter/FileNameLinter.php +++ b/arcanist/linter/FileNameLinter.php @@ -7,6 +7,10 @@ const INVALID_FILENAME_FOUND = 1; + const EXCEPTIONS = array( + // None so far + ); + public function getInfoName() { return 'lint-source-filename'; } @@ -38,6 +42,11 @@ } public function lintPath($path) { + // If file is in the exception list, let it go + if (in_array($path, self::EXCEPTIONS)) { + return; + } + $abspath = Filesystem::resolvePath($path, $this->getProjectRoot()); $fileContent = Filesystem::readFile($abspath); diff --git a/arcanist/linter/IncludeGuardLinter.php b/arcanist/linter/IncludeGuardLinter.php --- a/arcanist/linter/IncludeGuardLinter.php +++ b/arcanist/linter/IncludeGuardLinter.php @@ -10,6 +10,10 @@ const INCLUDE_GUARD_INVALID = 1; + const EXCEPTIONS = array( + // none yet + ); + public function getInfoName() { return 'lint-include-guard'; } @@ -40,6 +44,11 @@ } public function lintPath($path) { + // If file is in list of exceptions, let it go + if (in_array($path, self::EXCEPTIONS)) { + return; + } + $abspath = Filesystem::resolvePath($path, $this->getProjectRoot()); $fileContent = Filesystem::readFile($abspath);