johnatas-x / grumphp-phpa
Execute phpa in a grumphp task.
Installs: 1 270
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- phpro/grumphp: ^2.9.0
- rskuipers/php-assumptions: ^0.8.1
README
This repository adds a task for GrumPHP that launchs php-assumptions. During a commit check for weak assumption. If an assumption is detected, it won't pass.
Installation
Install it using composer:
composer require --dev johnatas-x/grumphp-phpa
Usage
- Add the extension in your grumphp.yml file:
extensions: - GrumphpPhpa\ExtensionLoader
- Add phpa to the tasks:
tasks:
phpa:
path: ~
exclude: []
- path (string): The path to analyse.
- exclude (array): List of files/directories to exclude from the analyse.