poetgroup/poet-coding-standard 问题修复 & 功能扩展

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

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

poetgroup/poet-coding-standard

最新稳定版本:1.0.0

Composer 安装命令:

composer require poetgroup/poet-coding-standard

包简介

POET CodeSniffer Standards

README 文档

README

This is the POET Group's coding standard. This standard is primarily focused on assisting with code reviews. For example, warning the code reviewer about potential security or performance problems.

Please visit the coding standard documentation for further details.

Install

Just add it to your project's composer.json file (--dev is optional based on your needs):

composer require --dev poetgroup/poet-coding-standard

Usage

The following paths may change based on how things are installed, but basically you are looking for the path to the CodeSniffer command and the path to the moodle directory of this project:

vendor/bin/phpcs --standard=POET /path/to/moodle/plugin

Testing

In order to run the unit tests, you must ensure that you install from source otherwise, testing code from PHP_CodeSniffer would be missing. Here is an example of re-installing dependencies and running tests:

rm -rf vendor/
composer install --prefer-source
vendor/bin/phpunit

Please also know that any new tests added need the @group poet annotation added. This ensures that only tests from the POET standard are run.

Documenting

To update the standard's documentation, use the following command:

vendor/bin/phpcs --standard=POET --generator=markdown > POET.md

License

This project is licensed under the GNU GPL v3 or later. See the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2016-05-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固