Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

Latest commit

 

History

History
85 lines (50 loc) · 1.64 KB

CONTRIBUTING.md

File metadata and controls

85 lines (50 loc) · 1.64 KB

CONTRIBUTING

We are using GitHub Actions as a continuous integration system.

For details, see workflows/continuous-integration.yml.

Coding Standards

We are using friendsofphp/php-cs-fixer to enforce coding standards.

Run

$ make coding-standards

to automatically fix coding standard violations.

Static Code Analysis

We are using phpstan/phpstan to statically analyze the code.

Run

$ make static-code-analysis

to run a static code analysis.

We are also using the baseline feature of phpstan/phpstan.

Run

$ make static-code-analysis-baseline

to regenerate the baseline in ../phpstan-baseline.neon.

❗ Ideally, the baseline should shrink over time.

Tests

We are using phpunit/phpunit to drive the development.

Run

$ make test

to run all the tests.

Mutation Tests

We are using infection/infection to ensure a minimum quality of the tests.

Enable Xdebug and run

$ make mutation-tests

to run mutation tests.

Extra lazy?

Run

$ make

to enforce coding standards, perform a static code analysis, and run tests!

Help

💡 Run

$ make help

to display a list of available targets with corresponding descriptions.