cocart-headless/cocart-sniffs

CoCart 开发使用的 PHP_CodeSniffer sniffs 集合。

安装: 50

依赖项: 2

建议者: 0

安全: 0

星标: 1

关注者: 1

分支: 0

开放问题: 0

类型:phpcodesniffer-standard

0.0.3 2024-03-10 17:22 UTC

This package is auto-updated.

Last update: 2024-09-10 18:26:32 UTC


README

CoCart 的 PHP_CodeSniffer sniffs 集合。

安装

composer require cocart-headless/cocart-sniffs

使用方法

命令行

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

配置文件

PHPCS 配置文件

<?xml version="1.0"?>
<ruleset name="CoCart Coding Standards">
	<description>My projects ruleset.</description>
	
	<!-- Configs -->
	<config name="minimum_supported_wp_version" value="5.4" />
	<config name="testVersion" value="7.2-" />

	<!-- Rules -->
	<rule ref="CoCart-Core" />

	<rule ref="WordPress.WP.I18n">
		<properties>
			<property name="text_domain" type="array" value="new-text-domain" />
		</properties>
	</rule>

	<rule ref="PHPCompatibility">
		<exclude-pattern>tests/</exclude-pattern>
	</rule>
</ruleset>

变更日志

查看变更日志以获取详细信息