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

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

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

dekodeinteraktiv/coding-standards

最新稳定版本:6.5.0

Composer 安装命令:

composer require --dev dekodeinteraktiv/coding-standards

包简介

Dekode Coding Standards

README 文档

README

Installation and usage

$ composer require --dev dekode/coding-standards

Add lint script to composer.json

"scripts": {
  "lint": [
    "./vendor/bin/phpcs ."
  ]
}

Configuration File

Create a phpcs.xml.dist file in your project root with the following contents. (Update required PHP version and text_domain accordingly.)

<?xml version="1.0"?>
<ruleset>
	<file>.</file>
	<arg name="extensions" value="php" />
	<config name="testVersion" value="8.2" />
	<config name="text_domain" value="block-theme,default" />
	<rule ref="Dekode" />
</ruleset>

DekodeNoAlignment ruleset

DekodeNoAlignment extends Dekode with additional strictness. Use it in place of Dekode for projects that want tighter formatting enforcement:

  • Adds a custom DekodeNoAlignment.Formatting.DisallowDoubleSpace sniff: disallows two or more consecutive spaces on a line (outside indentation) — auto-fixable via phpcbf
  • Suppresses noisy warnings for value-alignment (MultipleStatementAlignment, DoubleArrowNotAligned)
  • Suppresses Squiz.Commenting.FunctionComment.SpacingAfterParamType
<?xml version="1.0"?>
<ruleset>
	<file>.</file>
	<arg name="extensions" value="php" />
	<config name="testVersion" value="8.2" />
	<config name="text_domain" value="block-theme,default" />
	<rule ref="DekodeNoAlignment" />
</ruleset>

统计信息

  • 总下载量: 44.41k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 2
  • 依赖项目数: 15
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 7
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固