]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Don't apply apache license lint rules if there is no copyright holder.
authorepriestley <epriestley@phabricator.com>
Thu, 27 Jan 2011 01:46:17 +0000 (17:46 -0800)
committerepriestley <epriestley@phabricator.com>
Thu, 27 Jan 2011 01:46:17 +0000 (17:46 -0800)
src/lint/linter/apachelicense/ArcanistApacheLicenseLinter.php

index 1a3a7c12b3fb8e95286530a722f2bb2337e9cc48..c3264cca0e0b2621cdea0645dce0eccc9af80ea4 100644 (file)
@@ -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');