]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix a couple of lint issues, and update to version 2 (github).
authorepriestley <epriestley@javelinjs.com>
Sun, 9 Jan 2011 23:51:04 +0000 (15:51 -0800)
committerepriestley <epriestley@javelinjs.com>
Sun, 9 Jan 2011 23:51:04 +0000 (15:51 -0800)
.gitignore
scripts/arcanist.php
src/lint/linter/phutilmodule/ArcanistPhutilModuleLinter.php
src/workflow/amend/ArcanistAmendWorkflow.php
src/workflow/base/ArcanistBaseWorkflow.php
support/xhpast/parser_nodes.php

index f2d389f7c53089a2b2f17603d5fc638ac3286ca0..babd834d7acdfe3dcdcbc8ff2440603074a5d5de 100644 (file)
@@ -1,3 +1,5 @@
+.DS_Store
+._*
 *.a
 *.o
 /support/xhpast/xhpast
index 12f90d86731a0d5903489355f567a7c94c569513..5091c897472830aa045f337549530756fe61d3c1 100755 (executable)
@@ -116,7 +116,7 @@ try {
       'conduit.connect',
       array(
         'client'            => 'arc',
-        'clientVersion'     => 1,
+        'clientVersion'     => 2,
         'clientDescription' => php_uname('n').':'.$description,
         'user'              => getenv('USER'),
       ));
index f93ca7f84291ab32db1e4939e1aae54dd128c188..bde388bb42ce6cd6a926af95f06babdb864d9db3 100644 (file)
@@ -92,7 +92,7 @@ class ArcanistPhutilModuleLinter extends ArcanistLinter {
 
     $modules = array();
     $moduleinfo = array();
-    
+
     $project_root = $this->getEngine()->getWorkingCopy()->getProjectRoot();
 
     foreach ($paths as $path) {
index e5c1bc1aa3613b3e7a19aaf4c2d7f04d8f307e43..fd29962e64d86b1c010dedc94176b7b8f0b6f7e0 100644 (file)
@@ -108,7 +108,7 @@ EOTEXT
       $repository_api->amendGitHeadCommit($message);
       echo "Amended commit message.\n";
     }
-    
+
     $working_copy = $this->getWorkingCopy();
     $remote_hooks = $working_copy->getConfig('remote_hooks_installed', false);
     if (!$remote_hooks) {
@@ -120,7 +120,7 @@ EOTEXT
         'mark-committed',
         array($revision_id));
       $mark_workflow->run();
-    }    
+    }
 
     return 0;
   }
index 161d284224d2c673f7891571710f907b7bee9eb5..daf6c64745ab5c2707ffa06a731fdaf52e18278b 100644 (file)
@@ -534,7 +534,7 @@ class ArcanistBaseWorkflow {
     }
     $api->setRelativeCommit(trim($merge_base));
   }
-  
+
   protected function normalizeRevisionID($revision_id) {
     return ltrim(strtoupper($revision_id), 'D');
   }
index 699ebd152a05df375e104ca7664df4b2cddc0b35..20864f098bce913c7d8546d559b110ec633ed9ba 100755 (executable)
@@ -1,5 +1,21 @@
 <?php
 
+/*
+ * Copyright 2011 Facebook, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 function xhp_parser_node_constants() {
   return array(
     9000 => 'n_PROGRAM',