2017 © Pedro Peláez
 

phpcodesniffer-standard woocommerce-sniffs

WooCommerce sniffs

image

woocommerce/woocommerce-sniffs

WooCommerce sniffs

  • Thursday, March 22, 2018
  • by claudiosanches
  • Repository
  • 6 Watchers
  • 1 Stars
  • 3,234 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 28 % Grown

The README.md

WooCommerce Sniffs

Collection of PHP_CodeSniffer sniffs for WooCommerce., (*1)

Installation

composer require woocommerce/woocommerce-sniffs

Usage

Command line

./vendor/bin/phpcs --standard=WooCommerce-Core <file>

Config file

PHPCS config file:, (*2)


<ruleset name="WooCommerce Coding Standards">
    <description>My projects ruleset.</description>

    <!-- Configs -->
    <config name="minimum_supported_wp_version" value="4.7" />
    <config name="testVersion" value="7.2-" />

    <!-- Rules -->
    <rule ref="WooCommerce-Core" />

    <rule ref="WordPress.WP.I18n">
        <properties>
            <property name="text_domain" type="array" value="new-text-domain" />
        </properties>
    </rule>

    <rule ref="PHPCompatibility">
        <exclude-pattern>tests/</exclude-pattern>
    </rule>
</ruleset>

Changelog

See changelog for details, (*3)

The Versions

22/03 2018

dev-master

9999999-dev

WooCommerce sniffs

  Sources   Download

MIT

The Requires

 

wordpress phpcs standards woocommerce

22/03 2018

0.0.2

0.0.2.0

WooCommerce sniffs

  Sources   Download

MIT

The Requires

 

wordpress phpcs standards woocommerce

21/12 2017

0.0.1

0.0.1.0

WooCommerce sniffs

  Sources   Download

MIT

The Requires

 

wordpress phpcs standards woocommerce