elementor/elementor-sniffs

Elementor sniffs

Installs: 338

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 8

Forks: 5

Type:phpcodesniffer-standard

v0.2.0 2020-12-06 15:03 UTC

This package is not auto-updated.

Last update: 2024-05-20 16:06:59 UTC


README

Collection of PHP_CodeSniffer sniffs for Elementor.

Installation

composer require elementor/elementor-sniffs

Usage

Command line

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

Config file

PHPCS config file:

<?xml version="1.0"?>
<ruleset name="Elementor Coding Standards">
    <description>My projects ruleset.</description>
    
    <config name="text_domain" value="my-plugin-name" />
        
    <exclude-pattern>vendor/</exclude-pattern>

	<!-- Rules -->
    <rule ref="Elementor-Core" />
</ruleset>