Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1.21 KB

TECHNICAL.md

File metadata and controls

19 lines (13 loc) · 1.21 KB

Formatter

We adhere to PHPCS rules defined in the phpcs.xml rules file, as it is a mature tool and well established in the Wordpress-Plugin development scene. A program to apply auto-formattable rules of PHPCS is phpcbf and we encourage everyone to configure this tool in their IDE so that contribution commits consist of properly formatted code. Both are already in the dev dependencies of the repository code.

We have an automatic check as Github Action in our CI/CD-Pipeline, which prevents code contributions that not adhere to the rules.

Ignore formatter revisions

We use .git-blame-ignore-revs to track repo-wide cosmetic refactorings by auto format tools like prettier/phpcbf. See Github Documentation

You can also configure your local git so it always ignores the revs in that file:

git config blame.ignoreRevsFile .git-blame-ignore-revs