Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 624 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 624 Bytes

Dekode Coding Standards

Installation and usage

$ composer require --dev dekode/coding-standards

Add lint script to composer.json

"scripts": {
  "lint": [
    "./vendor/bin/phpcs ."
  ]
}

Configuration File

Create a phpcs.xml.dist file in your project root with the following contents. (Update required PHP version and text_domain accordingly.)

<?xml version="1.0"?>
<ruleset>
	<file>.</file>
	<arg name="extensions" value="php" />
	<config name="testVersion" value="8.2" />
	<config name="text_domain" value="block-theme,default" />
	<rule ref="Dekode" />
</ruleset>