Thank you for considering contributing to this project! Every contribution is welcome and helps improve the quality of the project. To ensure a smooth process and maintain high code quality, please follow the steps below.
- PHP 8.2 to 8.6
- Composer 2.2 or higher (the versions tested in CI)
# Clone repository
git clone https://github.com/move-elevator/composer-translation-validator.git
cd composer-translation-validator
# 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:phpcomposer migration# All tests
composer test
# All tests with code coverage
composer test:coverageCode coverage reports are saved in .build/coverage. You can open the latest HTML report as follows:
open .build/coverage/html/index.htmlUse the format <type>: <description> with one of the types feat, fix, refactor, docs, test, chore, perf or ci.
After completing your work, open a pull request and provide a description of your changes. Ideally, your PR should reference an issue that explains the problem you are addressing.
CI runs the linters, static analysis and tests on every pull request for all supported PHP versions. For more details, see the relevant workflows.