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.
Install it using composer:
composer require --dev johnatas-x/grumphp-phpa
- 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.