wpdesk/wp-code-sniffer 问题修复 & 功能扩展

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

邮箱: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.63k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 19
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-14