onepix/wp-coding-standards

PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

Installs: 165

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

v1.0.2 2025-02-25 19:23 UTC

This package is auto-updated.

Last update: 2025-02-26 02:32:03 UTC


README

PHP Version PHPUnit Tests Status Coverage Psalm level Latest Stable Version Total Downloads

WP Coding Standards

Based on wp-coding-standards/wpcs.

Declarations Sniffs

WpOnepixStandard.Declarations.StrictTypes

Checks for mandatory declare(strict_types=1); after <?php. Takes into account other parameters besides strict_types

WP Sniffs

WpOnepixStandard.WP.AbspathAfterNamespace

Looking for a mandatory defined('ABSPATH') || exit; check after namespace so that you can't go to the file directly from the url