Download the PHP package openeuropa/code-review-drupal without Composer
On this page you can find all versions of the php package openeuropa/code-review-drupal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openeuropa/code-review-drupal
More information about openeuropa/code-review-drupal
Files in openeuropa/code-review-drupal
Package code-review-drupal
Short Description OpenEuropa code review drupal component.
License EUPL-1.2
Informations about the package code-review-drupal
code-review-drupal
Coding standard dependencies for Drupal components.
Installation
Install the code review component via Composer:
In your project root create the following grumphp.yml.dist
:
Commands
GrumPHP tasks will be run at every commit, if you wish to run them without performing a commit use the following command:
If you want to simulate the tasks that will be run when creating a new commit:
Check GrumPHP documentation for more.
Customization
This component offers a variety of ready conventions that all projects need to follow. This list of default conventions can be found in CONVENTIONS.md.
Since GrumPHP uses the Symfony Dependency Injection component
you can override specific parameters in your project's grumphp.yml.dist
file as follows:
Below the list of task parameters can that be overridden on a per-project basis:
tasks.phpcs.standard
tasks.phpcs.ignore_patterns
tasks.phpcs.triggered_by
tasks.phpcs.whitelist_patterns
tasks.phpcs.warning_severity
tasks.phpstan.autoload_file
tasks.phpstan.configuration
tasks.phpstan.level
tasks.phpstan.force_patterns
tasks.phpstan.triggered_by
tasks.git_commit_message.matchers
It is also possible to extend the list of tasks to be run by adding tasks under the tasks:
tree as shown below:
GrumPHP already has a series of tasks that can be used out of the box, you can find the complete list in the GrumPHP tasks page.
If you wih you can create your own tasks as explained in the GrumPHP extensions page.
Transition from code-review 2.x
If you wish to transition to code-review-drupal from code-review version 2.x, please replace the package via Composer:
Besides replacement of the package, some adjustments are needed in grumphp.yml
file.
This component removes ExtraTasks extension. Any aditional task previously declared in extra_tasks
will need to be placed inside tasks
under grumphp
tree.
In addition, PHP Mess Detector is no longer available as part of the configured tasks. The task and related parameters have been removed. If you wish to continue using PHP Mess Detector, you can add it as part of GrumPHP as previously described.
All other conventions and parameters remain the same.
All versions of code-review-drupal with dependencies
openeuropa/code-review Version ^3.0
drupal/coder Version ^8.3.16
mglaman/phpstan-drupal Version ^1.2
phpstan/phpstan-deprecation-rules Version ^1.2
phpstan/extension-installer Version ^1.4