ciricihq/cirici-codesniffer

Cirici CodeSniffer 标准

3.1.0 2015-04-06 20:18 UTC

This package is auto-updated.

Last update: 2024-09-08 06:26:33 UTC


README

此代码与 phpcs 兼容,并检查代码是否符合 Cirici Thinking Digital PHP 项目的编码标准。

安装

您应该使用 composer 安装此代码检查器

composer require ciricihq/cirici-codesniffer
vendor/bin/phpcs --config-set installed_paths /path/to/your/app/vendor/ciricihq/cirici-codesniffer

第二个命令让 phpcs 知道如何找到您的新嗅探器。确保您没有覆盖任何现有的 installed_paths 值。

用法

根据您如何安装代码检查器,运行它的方式也会有所不同。如果您已经通过 PEAR 安装了 phpcs 和此包,可以执行以下操作:

vendor/bin/phpcs --standard=Cirici /path/to/code

⚠️ 警告:当这些嗅探器通过 composer 安装时,请确保您已配置了 CodeSniffer 的 installed_paths 设置。

许可证

The MIT License (MIT)

CakePHP(tm) : The Rapid Development PHP Framework (https://cakephp.com.cn)
Copyright (c) 2005-2013, Cake Software Foundation, Inc.
Cirici Thinking Digital (http://cirici.com)
Copyright (c) 2015, Cirici Thinking Digital

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.