7a526eb5042fac0644d8fa4c9961bb29c45271c0
[yaffs-website] / vendor / consolidation / annotated-command / CONTRIBUTING.md
1 # Contributing to Consolidation
2
3 Thank you for your interest in contributing to the Consolidation effort!  Consolidation aims to provide reusable, loosely-coupled components useful for building command-line tools. Consolidation is built on top of Symfony Console, but aims to separate the tool from the implementation details of Symfony.
4
5 Here are some of the guidelines you should follow to make the most of your efforts:
6
7 ## Code Style Guidelines
8
9 Consolidation adheres to the [PSR-2 Coding Style Guide](http://www.php-fig.org/psr/psr-2/) for PHP code.
10
11 ## Pull Request Guidelines
12
13 Every pull request is run through:
14
15   - phpcs -n --standard=PSR2 src
16   - phpunit
17   - [Scrutinizer](https://scrutinizer-ci.com/g/consolidation/annotated-command/)
18   
19 It is easy to run the unit tests and code sniffer locally; just run:
20
21   - composer cs
22
23 To run the code beautifier, which will fix many of the problems reported by phpcs:
24
25   - composer cbf
26
27 These two commands (`composer cs` and `composer cbf`) are defined in the `scripts` section of [composer.json](composer.json).
28
29 After submitting a pull request, please examine the Scrutinizer report. It is not required to fix all Scrutinizer issues; you may ignore recommendations that you disagree with. The spacing patches produced by Scrutinizer do not conform to PSR2 standards, and therefore should never be applied. DocBlock patches may be applied at your discression. Things that Scrutinizer identifies as a bug nearly always need to be addressed.
30
31 Pull requests must pass phpcs and phpunit in order to be merged; ideally, new functionality will also include new unit tests.