diff --git a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php index d642c3cf..fd2f1c8f 100644 --- a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php +++ b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php @@ -79,6 +79,8 @@ class ArcanistXHPASTLinter extends ArcanistLinter { public function getLintSeverityMap() { return array( self::LINT_TODO_COMMENT => ArcanistLintSeverity::SEVERITY_ADVICE, + self::LINT_UNABLE_TO_PARSE + => ArcanistLintSeverity::SEVERITY_WARNING, self::LINT_FORMATTING_CONVENTIONS => ArcanistLintSeverity::SEVERITY_WARNING, self::LINT_NAMING_CONVENTIONS diff --git a/src/repository/api/git/ArcanistGitAPI.php b/src/repository/api/git/ArcanistGitAPI.php index 8d920671..15f5c952 100644 --- a/src/repository/api/git/ArcanistGitAPI.php +++ b/src/repository/api/git/ArcanistGitAPI.php @@ -119,11 +119,11 @@ class ArcanistGitAPI extends ArcanistRepositoryAPI { $relative = $this->getRelativeCommit(); if ($relative == self::GIT_MAGIC_ROOT_COMMIT) { list($stdout) = execx( - '(cd %s; git log HEAD)', + '(cd %s; git log --format=medium HEAD)', $this->getPath()); } else { list($stdout) = execx( - '(cd %s; git log %s..HEAD)', + '(cd %s; git log --format=medium %s..HEAD)', $this->getPath(), $this->getRelativeCommit()); } @@ -132,7 +132,7 @@ class ArcanistGitAPI extends ArcanistRepositoryAPI { public function getGitHistoryLog() { list($stdout) = execx( - '(cd %s; git log -n%d %s)', + '(cd %s; git log --format=medium -n%d %s)', $this->getPath(), self::SEARCH_LENGTH_FOR_PARENT_REVISIONS, $this->getRelativeCommit());