AlexanderAllen-zz.drupal-coding-standards
Drupal Coding Standards
Installs Drupal Coding Standards for Code Sniffer (PHPCS).
Requirements
- PHP
- Composer. Automatically installed via
AlexanderAllen.Composer. - PHP Code Sniffer. Automatically installed via
AlexanderAllen.CodeQuality.
Role Variables
The coding standards in this playbook are meant to be used with PHP Code Sniffer.
This playbook assumes that Code Sniffer has been already installed.
The directory where Composer downloads packages to can be specified in vars/main.yml:
dcs_comp_user_dir: /home/vagrant/.composer
Dependencies
AlexanderAllen.ComposerAlexanderAllen.CodeQuality
Example Playbook
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: webservers
roles:
- { role: AlexanderAllen.drupal-coding-standards }
Inside vars/main.yml:
# Directory where Composer packages are installed to.
dcs_comp_user_dir: /home/vagrant/.composer
License
GPLv2
Author Information
Install
ansible-galaxy install AlexanderAllen-zz.drupal-coding-standardsLicense
gpl-2.0
Downloads
97
Owner
