ggrible/coding-standards 问题修复 & 功能扩展

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

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

ggrible/coding-standards

Composer 安装命令:

composer require ggrible/coding-standards

包简介

The WordPress coding standards applied to all WP Jazz projects.

README 文档

README

The WordPress coding standards applied to all WP Jazz projects.

Provides a set of rulesets and extensions for:

These coding standards are heavily based on, and extend, Human Made Coding Standards.

Installation

composer require --dev wp-jazz/coding-standards

This package will install supported versions of PHPCS, PHPStan, and Psalm.

See the examples directory for boilerplate configuration files.

Using PHPCS

Our PHPCS ruleset extends the Human Made coding standards for PHP and WordPress.

Run the following command to run the standards checks:

./vendor/bin/phpcs --standard=vendor/wp-jazz/coding-standards .

Or include the following in your phpcs.xml:

<!-- Use WP Jazz Coding Standards -->
<rule ref="Jazz" />

The PHPCS ruleset is based upon:

With customisations, exclusions, and additions to match our style.

Using PHPStan

Run the following command to run the static analysis:

./vendor/bin/phpstan analyze -c vendor/szepeviktor/phpstan-wordpress/extension.neon .

Make PHPStan find it automatically using phpstan/extension-installer:

composer require --dev phpstan/extension-installer

Or manually include it in your phpstan.neon:

includes:
  - vendor/szepeviktor/phpstan-wordpress/extension.neon

See the szepeviktor/phpstan-wordpress package, by Viktor Szépe, for more information on configuring PHPStan.

Using Psalm

./vendor/bin/psalm -c vendor/wp-jazz/coding-standards/psalm.xml.dist .

Use Psalm to enable the plugin:

./vendor/bin/psalm-plugin enable humanmade/psalm-plugin-wordpress

Or manually include it in your psalm.xml:

<plugins>
  <pluginClass class="PsalmWordPress\Plugin" />
</plugins>

See the humanmade/psalm-plugin-wordpress package, by Human Made, for more information on configuring Psalm.

Using ESLint

We recommend using the Human Made coding standards for JavaScript which uses ESLint.

npx install-peerdeps --dev @humanmade/eslint-config@latest

See the @humanmade/eslint-config package README for more information on configuring ESLint.

Using Stylelint

We recommend using the Human Made coding standards for CSS and SCSS which uses Stylelint.

npm install --save-dev stylelint @humanmade/stylelint-config

See the @humanmade/stylelint package README for more information on configuring Stylelint.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固