dekodeinteraktiv/coding-standards

This package is abandoned and no longer maintained. The author suggests using the dekode/coding-standards package instead.

Dekode Coding Standards

Installs: 43 940

Dependents: 15

Suggesters: 0

Security: 0

Stars: 4

Watchers: 9

Forks: 0

Open Issues: 1

Language:JavaScript

Type:phpcodesniffer-standard

6.1.0 2024-10-03 06:08 UTC

This package is auto-updated.

Last update: 2024-10-05 06:38:00 UTC


README

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>