Coder review with --xml and --checkstyle arguments will fails, when Drupal was not bootstrapped, because drupal_attributes() doesn't exists.

Coder review should work anytime without a Drupal bootstrap, for example for use with CI servers.

There is a patch to resolve this problem:
Defines a new function, which calls drupal_attributes() is exists, if not, it will do the work.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rhys’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

I'm quite surprised that this hasn't been added already, as this works extremely nicely, even against the most recent stable build.

I'm using this as part of a CI process that uses drush make to create the coder module, and makes it available globally. It then calls drush coder-review without a site available, and correctly produces a nice XML output which is displayed in jenkins.

klausi’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

  • klausi committed c38dd5f on 7.x-2.x authored by Désiré
    Issue #2025281 by Désiré: Review can't create XML output if Drupal was...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.