Download the PHP package jover_be/drupal-pre-commit without Composer
On this page you can find all versions of the php package jover_be/drupal-pre-commit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jover_be/drupal-pre-commit
More information about jover_be/drupal-pre-commit
Files in jover_be/drupal-pre-commit
Package drupal-pre-commit
Short Description A Git pre-commit hook to check Drupal Coding Standards and more.
License MIT
Homepage https://github.com/jover/drupal-code-check
Informations about the package drupal-pre-commit
Drupal Code Check
A Git pre-commit hook to check Drupal Coding Standards and more.
Description
This Git pre-commit hook will be active on your Composer based Drupal project.
Things which will be checked in the pre-commit hook:
- Syntax checking using PHP Linter
- Automatically try to match code style via PHP Code Sniffer Beautifier and Fixer
- Coding standards checking using PHP Code Sniffer
- Blacklisted strings checking/validation
Note that files of the following origins are not checked:
- Drupal Core
- Contributed Modules
- Contributed Libraries
- Contributed Themes
- Contributed Profiles
Getting started
Prerequisites
- Composer
- Composer based Drupal project
- PHP 5.4 or higher
Installation
Add this project as a composer dependency on your Composer based Drupal project.
And don't forget to update...
In order to activate the Git Hooks, update your composer.json file like following:
Development requirement
In case you want to install it as a development requirement (require-dev), make use of the project neronmoon/scriptsdev in order to execute the scripts only in case your project was installed in development mode.
And instead, you should be using the scripts-dev part as described by
Author
License
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of drupal-pre-commit with dependencies
drupal/coder Version ~8.2
symfony/console Version ~2.8|~3.0
symfony/process Version ~2.8|~3.0