karen-nalbandian/phalcon-coding-standard 问题修复 & 功能扩展

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

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

karen-nalbandian/phalcon-coding-standard

最新稳定版本:1.0.2

Composer 安装命令:

composer require karen-nalbandian/phalcon-coding-standard

包简介

CodeSniffer ruleset for the Phalcon coding standard (PCG Cube flavor)

README 文档

README

A coding standard to check against the Phalcon coding standards, with slight modifications.

Important note: Please be careful using this library, as it is for internal usage, and probably will not be maintained

Differences

The following standards has been modified:

  • added the Phalcon.Commenting.FunctionComment.MissingParamType
  • removed the Phalcon.Commenting.FunctionComment.SpacingAfterParamType
  • removed the Phalcon.Commenting.Annotations.Invalid
  • removed the Phalcon.Functions.Arguments.Invalid
  • removed the Squiz.Strings.ConcatenationSpacing.PaddingFound
  • removed the PSR2.Classes.PropertyDeclaration.Underscore
  • removed the Zend.NamingConventions.ValidVariableName.ContainsNumbers
  • removed the Zend.NamingConventions.ValidVariableName.MemberVarContainsNumbers

Installation

Composer

This standard can be installed with the Composer dependency manager.

  1. Install Composer

  2. Install the coding standard as a dependency of your project

     composer require --dev karen-nalbandian/phalcon-coding-standard:dev-master
    
  3. Add the coding standard to the PHP_CodeSniffer install path

     vendor/bin/phpcs --config-set installed_paths vendor/karen-nalbandian/phalcon-coding-standard
    
  4. Check the installed coding standards for "Phalcon"

     vendor/bin/phpcs -i
    
  5. Done!

     vendor/bin/phpcs /path/to/code
    

### Stand-alone

  1. Install PHP_CodeSniffer

  2. Checkout this repository

     git clone https://github.com/karen-nalbandian/phalcon-coding-standard.git
    
  3. Add the coding standard to the PHP_CodeSniffer install path

     phpcs --config-set installed_paths /path/to/phalcon-coding-standard
    

    Or copy/symlink this repository's "Phalcon"-folder inside the phpcs Standards directory

  4. Check the installed coding standards for "Phalcon"

     phpcs -i
    
  5. Done!

     phpcs /path/to/code
    

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-29