valu/wp-codesniffer-rules

PHP_CodeSniffer rules (sniffs) to enforce Valu WP coding conventions

Installs: 549

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

dev-master 2023-06-06 12:55 UTC

This package is auto-updated.

Last update: 2024-11-06 16:06:32 UTC


README

Install

composer require valu/wp-php-ruleset

Configure

Add phpcs.xml with

<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Custom" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
    <rule ref="Valu-WP-Rules"/>
</ruleset>

and run

./vendor/bin/phpcs src