Thanks for considering contributing to this project! Each contribution is highly appreciated. In order to maintain a high code quality, please follow all steps below.
- Composer
- PHP >= 8.1
# Clone repository
git clone https://github.com/CPS-IT/monitoring.git
cd monitoring
# Install dependencies
composer install
# All linters
composer lint
# Specific linters
composer lint:composer
composer lint:editorconfig
composer lint:php
# Fix all CGL issues
composer fix
# Fix specific CGL issues
composer fix:composer
composer fix:editorconfig
composer fix:php
# All static code analyzers
composer sca
# Specific static code analyzers
composer sca:php
# All tests
composer test
# All tests with code coverage
composer test:coverage
Code coverage reports are written to .build/coverage
. You can open the
last HTML report like follows:
open .build/coverage/html/index.html
Once you have finished your work, please submit a pull request and describe what you've done. Ideally, your PR references an issue describing the problem you're trying to solve.
All described code quality tools are automatically executed on each pull request for all currently supported PHP versions. Take a look at the appropriate workflows to get a detailed overview.