Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Follow-up to #1328552: Add support for Coder code reviews and Syntastic plugin and #1839780: Update installation script to download plugins: The installation script can also download the Coder module (if it is not already installed). Can we also automate the installation of PHP_CodeSniffer? The DrupalCS project has been combined with Coder, and we should make sure we stay up to date.
Installation change
The current instructions on http://drupal.org/node/1419988 include
sudo ln -sv /path/to/coder/coder_sniffer/Drupal $(pear config-get php_dir)/PHP/CodeSniffer/Standards/Drupal
After the patch in #2, the Vimrc configuration looks for Standards/Drupal instead of Standards/DrupalCodingStandard.
Comment | File | Size | Author |
---|---|---|---|
#2 | update-coder-1839806-2.patch | 657 bytes | benjifisher |
Comments
Comment #1
benjifisherStarting with the 7.x-2.x branch of Coder, it includes the DrupalCS module. For now, that means either using git or
$ drush dl coder-7.x-2.x --destination=$HOME/.drush
to get the 7.x-2.x-dev release. This merits several comments:
--destination
option, Coder will be downloaded to the appropriatemodules
directory or to the current directory. I tested with and without the@none
site alias on my Mac's guest account.~/.drush
instead of$HOME/.drush
I got a new directory~
under the current one.In the issue summary, I asked about installing PHP_CodeSniffer. The right place to work on that is #1829128: make it easier to install and check for PHP CodeSniffer.
Comment #2
benjifisherThe attached patch is one step in the right direction, reflecting updated installation instructions on http://drupal.org/node/1419988.
Comment #3
benjifisherAs of January 4, the recommended version of Coder is 7.x-2.0-beta1. I think it is time to resolve this issue. Do we need anything more than the patch in #2?
Comment #4
benjifisherFixed and committed: 387650e.
I also updated the issue summary.
Comment #5.0
(not verified) CreditAttribution: commentedAdd a note describing the configuration change and a link to the Coder installation instructions.