2017 © Pedro Peláez
 

phpcodesniffer-standard coding-standards

Dekode Coding Standards

image

dekodeinteraktiv/coding-standards

Dekode Coding Standards

  • Thursday, July 26, 2018
  • by dekode
  • Repository
  • 5 Watchers
  • 1 Stars
  • 3,380 Installations
  • 14 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 6 Versions
  • 56 % Grown

The README.md

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.), (*1)

<?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>

The Versions

26/07 2018

dev-dependabot/composer/wp-coding-standards/wpcs-tw-1.0.0

dev-dependabot/composer/wp-coding-standards/wpcs-tw-1.0.0

Dekode Coding Standards

  Sources   Download

MIT

The Requires