# Development
# Pipeline
Our pipeline consists of the following steps:
- Dependency check via ComposerRequireChecker (opens new window)
- Lint Pull Request
- Check code style via PHP CS Fixer (opens new window)
- Static Analyse via PHPStan (opens new window)
- Check architecture via Deptrac (opens new window)
- Run tests via PHPUnit (opens new window)
Before submitting a merge request, you can perform all checks by running the make check
command.
# Development Commands
Command | Description |
---|---|
composer test | Run tests (via PHPUnit) |
composer lint | Run lint (via PHPCsFixer) |
composer deptrac | Run deptrac |
make deps-check | Check composer requires (via ComposerRequireChecker) |
make check | Run test, lint, stat-analyse, deptrac |
make docs | Build docs (rule page, Config JSON Schema) |
make env | Add .env file |
make try MR_ID=10 | Run MR-Linter on really pull request |
make try-gitlab MR_ID=10 | Run MR-Linter on really merge request |
# MR-Linter Commands
Command | Description |
---|---|
./bin/mr-linter install | Install this tool (copy configuration file to work directory) |
./bin/mr-linter install --format=yaml | Install this tool (copy configuration file to work directory) |
./bin/mr-linter dump | Print current rules |
./bin/mr-linter lint | Run lint to current merge request |
./bin/mr-linter info | Print info about MR Linter |