21 Coding style policy
LogMANOriginal edited this page 2019-11-01 18:05:06 +01:00

This section explains the coding style policy for RSS-Bridge with examples and references to external resources. Please make sure your code is compliant before opening a pull request.

RSS-Bridge uses Travis-CI to validate code quality. You will automatically be notified if issues were found in your pull request. You must fix those issues before the pull request will be merged. Refer to phpcs.xml for a complete list of policies enforced by Travis-CI.

If you want to run the checks locally, make sure you have phpcs and phpunit installed on your machine and run following commands in the root directory of RSS-Bridge (tested on Debian):

phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p
phpunit --configuration=phpunit.xml --include-path=lib/

The following list provides an overview of all policies applied to RSS-Bridge. Find more information on the corresponding Wiki page.

Important for editors: Make sure to keep CONTRIBUTING.md in sync!