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.
- Whitespace
- Indentation
- Maximum line length
- Strings
- Constants
- Keywords
- Operators
- Functions
- Structures
- If-Statement
- Classes
- Casting
- Arrays
Important for editors: Make sure to keep CONTRIBUTING.md in sync!