定制 wpdesk/wp-code-sniffer 二次开发

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

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

wpdesk/wp-code-sniffer

最新稳定版本:1.3.2

Composer 安装命令:

composer require wpdesk/wp-code-sniffer

包简介

Library for WP Desk Coding Standards in plugins.

README 文档

README

Set of general WordPress standards enhanced by WP Desk coding style.

Installation & Usage

To install this set of standards simply add the library to your require-dev in composer.json or run:

composer require --dev wpdesk/wp-code-sniffer

Copy phpcs.xml.dist and .editorconfig to your project folder, then set needed config like text_domain, etc.

Integration with PHP Storm

Go to Settings→Languages & Frameworks→PHP→Quality Tools in PHP_CodeSniffer select Local in Configuration.

You can also select more settings by clicking .... Clear the path or set it to globally installed phpcs if you have locally installed dependencies.

Secondly, in Settings→Inspections→Quality Tools check the box PHP_CodeSniffer inspections and set coding standards to custom path pointing to your phpcs.xml.dist file.

统计信息

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

GitHub 信息

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

其他信息

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