From: epriestley Date: Thu, 27 Jan 2011 01:46:17 +0000 (-0800) Subject: Don't apply apache license lint rules if there is no copyright holder. X-Git-Tag: conduit-4~427^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=777c69699b4b1f2ec58c10a8ea2526942ff6d398;p=arcanist.git Don't apply apache license lint rules if there is no copyright holder. --- diff --git a/src/lint/linter/apachelicense/ArcanistApacheLicenseLinter.php b/src/lint/linter/apachelicense/ArcanistApacheLicenseLinter.php index 1a3a7c12..c3264cca 100644 --- a/src/lint/linter/apachelicense/ArcanistApacheLicenseLinter.php +++ b/src/lint/linter/apachelicense/ArcanistApacheLicenseLinter.php @@ -43,9 +43,7 @@ class ArcanistApacheLicenseLinter extends ArcanistLinter { $copyright_holder = $working_copy->getConfig('copyright_holder'); if (!$copyright_holder) { - throw new ArcanistUsageException( - "This project uses the ArcanistApacheLicenseLinter, but does not ". - "define a 'copyright_holder' in its .arcconfig."); + return; } $year = date('Y');