定制 cocart-headless/cocart-sniffs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cocart-headless/cocart-sniffs

最新稳定版本:0.0.3

Composer 安装命令:

composer require --dev cocart-headless/cocart-sniffs

包简介

Collection of PHP_CodeSniffer sniffs for CoCart development.

README 文档

README

Collection of PHP_CodeSniffer sniffs for CoCart.

Installation

composer require cocart-headless/cocart-sniffs

Usage

Command line

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

Config file

PHPCS config file:

<?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>

Changelog

See changelog for details

统计信息

  • 总下载量: 964
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-09