Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
coder_review_xml_no_bootstrap-7.x-2.x-0.patch | 1.46 KB | Désiré |
Comments
Comment #1
rhys CreditAttribution: rhys commentedI'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.
Comment #2
klausiCommitted, thanks!