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
Requires
- php: ^8.3
- squizlabs/php_codesniffer: 3.x-dev
- wp-coding-standards/wpcs: ^3
Requires (Dev)
- phpunit/phpunit: ^12
- vimeo/psalm: ^6.8
This package is auto-updated.
Last update: 2025-10-07 19:13:19 UTC
README
LunaPress Coding Standards
Based on wp-coding-standards/wpcs.
- Declarations Sniffs
- WP Sniffs
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