From 777c69699b4b1f2ec58c10a8ea2526942ff6d398 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 26 Jan 2011 17:46:17 -0800 Subject: [PATCH] Don't apply apache license lint rules if there is no copyright holder. --- src/lint/linter/apachelicense/ArcanistApacheLicenseLinter.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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');