承接 hydrawiki/hydrawiki-codesniffer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

hydrawiki/hydrawiki-codesniffer

最新稳定版本:v1.0.19

Composer 安装命令:

composer require hydrawiki/hydrawiki-codesniffer

包简介

HydraWiki CodeSniffer Standards

README 文档

README

Abstract

This project implements a set of rules for use with [PHP CodeSniffer]0.

HydraWiki is based on MediaWiki's Coding Standards, it applies additional coding standards on top of the MediaWiki Standard.

See MediaWiki conventions from MediaWiki for a detailed description of the coding conventions that are validated by these rules. :-)

How to install

  1. Create a composer.json which adds this project as a dependency:

     {
     	"require-dev": {
     		"hydrawiki/hydrawiki-codesniffer": "1.0.9"
     	},
     	"scripts": {
     		"test": [
     			"phpcs -p -s"
     		],
     		"fix": "phpcbf"
     	}
     }
    
  2. Create a .phpcs.xml with our configuration:

     <?xml version="1.0"?>
     <ruleset>
     	<rule ref="./vendor/hydrawiki/hydrawiki-codesniffer/HydraWiki"/>
     	<file>.</file>
     	<arg name="extensions" value="php,php5,inc"/>
     	<arg name="encoding" value="UTF-8"/>
     </ruleset>
    
  3. Install: composer update
  4. Run: composer test
  5. Run: composer fix to auto-fix some of the errors, others might need manual intervention.
  6. Commit!

Note that for most MediaWiki projects, MediaWiki also recommend to add a PHP linter to your composer.json – see the full documentation for more details.

Acknowledgements

This extension is based off of the mediawiki-codesniffer extension created by MediaWiki and some parts of [PHP CodeSniffer]0.

Contributing and Licensing

This coding standard is used internally on HydraWiki projects in support of the Gamepedia Platform. This project is made public for ease of use by our team and it is not our intention to maintain it for public use as an alternative to the original project from which it was derived. However, if you do find it useful and want to contribute improvements to it, any merge request will be consider against our internal needs for this project before public considerations.

The project is available under MIT license unless otherwise noted in files that are used from other projects. These files retain the original license under which they were created.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固