kallookoo/phpcs-rules 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

kallookoo/phpcs-rules

最新稳定版本:1.0.4

Composer 安装命令:

composer require --dev kallookoo/phpcs-rules

包简介

WordPress & WooCommerce sniffs

README 文档

README

Collection of PHP_CodeSniffer sniffs for WordPress & WooCommerce that exclude your own files.

Installation

composer require kallookoo/phpcs-rules

Usage

When the project is related to WooCommerce set the standard with WooCommerce-Excl or set it with WordPress-Excl otherwise.

Example of a configuration file

<?xml version="1.0"?>
<ruleset name="WordPress and WooCommerce Sniffs">
	<description>My project ruleset.</description>
	<!-- Only use for PHP files -->
	<!-- <arg name="extensions" value="php"/> -->

	<!-- Configure the PHP Compatibility WP version. Uncomment only if customize the version. -->
	<!-- <config name="testVersion" value="7.0-"/> -->

	<!-- Configure the minimum WordPress version -->
	<config name="minimum_supported_wp_version" value="6.0"/>

	<!-- Rules -->

	<!-- Uncomment the required rule below -->
	<!-- <rule ref="WordPress-Excl"/> -->
	<!-- <rule ref="WooCommerce-Excl"/> -->

	<rule ref="WordPress.WP.I18n">
		<properties>
			<!-- Replace the text-domain with the text domain in this project or remove this rule. -->
			<property name="text_domain" type="array" value="text-domain"/>
		</properties>
	</rule>
</ruleset>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-20