Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.16 KB

CONTRIBUTING.md

File metadata and controls

39 lines (27 loc) · 1.16 KB

OS2dagsorden – Contribution guidelines

Thank you for your interest in contributing. It is greatly appreciated. However, your contributions must follow the guidelines below.

Coding standards

All code must follow the official Drupal coding standards: https://www.drupal.org/docs/develop/standards/coding-standards.

Your code will be run through a set of static analysis tools and continuous integration builds to ensure compliance and project integrity. Your code should pass these tests without raising new issues or breaking the build. The status of the tests will be reported within the pull request.

Local checks

To check your code locally, first install Coder Sniffer: https://www.drupal.org/node/1419988.

Then check all of the code by running

phpcs --standard=phpcs.xml.dist

To check only some files, add them as parameters to the phpcs command, e.g.

phpcs --standard=phpcs.xml.dist modules/os2dagsorden/os2dagsorden_annotator/os2dagsorden_annotator.module

To code you've changed before a commit, use

phpcs --standard=phpcs.xml.dist $(git diff --name-only)