gnistdesign/gdcs
最新稳定版本:1.0.3
Composer 安装命令:
composer require gnistdesign/gdcs
包简介
Gnist Design Coding Standards - WordPress
关键字:
README 文档
README
Installation
Standards can be installed with Composer dependency manager:
$ composer require gnistdesign/gdcs --dev
Usage
Basic usage
When the package is installed via Composer you can check your files with the coding standards via:
$ vendor/bin/phpcs --standard="GnistDesignWP" <path>
Where <path> is at least one file or directory to check, ex ..
Configuration File
To not have to pass all the arguments to the command line, and also make your
own project customizations create a phpcs.xml.dist file that contains
something like this:
<?xml version="1.0"?> <ruleset name="MyCustomStandard"> <description>A custom set of rules to check for a WordPress project</description> <!-- Exclude directories --> <exclude-pattern>/vendor/*</exclude-pattern> <!-- Text domain. --> <rule ref="WordPress.WP.I18n"> <properties> <property name="text_domain" type="array"> <element value="my-textdomain"/> <element value="library-textdomain"/> </property> </properties> </rule> <!-- Prefix. --> <rule ref="WordPress.NamingConventions.PrefixAllGlobals"> <properties> <property name="prefixes" type="array"> <element value="my_prefix"/> </property> </properties> </rule> <!-- Include the Gnist Design Coding Standard for WordPress. --> <rule ref="GnistDesignWP" /> </ruleset>
统计信息
- 总下载量: 546
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-18