automattic/vipwpcs 问题修复 & 功能扩展

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

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

automattic/vipwpcs

最新稳定版本:3.0.1

Composer 安装命令:

composer require --dev automattic/vipwpcs

包简介

PHP_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions

README 文档

README

This project contains PHP_CodeSniffer (PHPCS) sniffs and rulesets to validate code developed for WordPress VIP.

This project contains two rulesets:

  • WordPressVIPMinimum - for use with projects on the (older) WordPress.com VIP platform.
  • WordPress-VIP-Go - for use with projects on the (newer) VIP Go platform.

These rulesets contain only the rules which are considered to be errors and warnings according to the WordPress VIP documentation.

The rulesets use rules from the WordPress Coding Standards (WPCS) project, as well as the VariableAnalysis standard.

Learn about why violations are flagged as errors vs warnings and what the levels mean.

Minimal requirements

Installation

Composer will install the latest compatible versions of PHPCS, PHPCSUtils, PHPCSExtra, WPCS and VariableAnalysis and register the external standards with PHP_CodeSniffer.

Please refer to the installation instructions for installing PHP_CodeSniffer for WordPress VIP for more details.

As of VIPCS version 2.3.0, there is no need to require the PHP_CodeSniffer Standards Composer Installer Plugin anymore as it is now a requirement of VIPCS itself. Permission to run the plugin will still need to be granted though when using Composer 2.2 or higher.

Composer Project-based Installation

To install the VIP Coding Standards, run the following from the root of your project:

composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require --dev automattic/vipwpcs

Composer Global Installation

Alternatively, it can be installed standard globally for use across multiple projects:

composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer global require --dev automattic/vipwpcs

Contribution

Please see CONTRIBUTION.md.

License

Licensed under GPL-2.0-or-later.

统计信息

  • 总下载量: 9.41M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 257
  • 点击次数: 1
  • 依赖项目数: 147
  • 推荐数: 0

GitHub 信息

  • Stars: 253
  • Watchers: 6
  • Forks: 43
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04