lunapress/coding-standards

PHP_CodeSniffer rules (sniffs) for LunaPress

Installs: 16

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

pkg:composer/lunapress/coding-standards

dev-main 2025-10-07 19:13 UTC

This package is auto-updated.

Last update: 2025-10-07 19:13:19 UTC


README

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

LunaPress Coding Standards

Based on wp-coding-standards/wpcs.

Declarations Sniffs

LunaPressStandard.Declarations.StrictTypes

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

WP Sniffs

LunaPressStandard.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