Creating and enforcing a coding standard

mirtes

Every developer team should have a good infrastructure providing and enforcing consistent output of each team member at their fingertips. Coding standard is one of many things holding a project together.

It should not be obvious from a code snippet who wrote it. The entire team should have common conventions how to write code. Some can be checked automatically (code formatting), others (like sticking to designed architecture of the system) should be discussed during code review.

I will talk about PHP_CodeSniffer, writing custom sniffs, integrating it into your workflow and setting up a continuous integration server in case you don't have one. You may also learn a thing or two about how PHP works internally when parsing a source code file!

Session Track

PHP

Experience Level

Beginner

Drupal Version