pressbooks/coding-standards
最新稳定版本:1.1.0
Composer 安装命令:
composer create-project pressbooks/coding-standards
包简介
README 文档
README
These are our coding standards. There are many like these, but these are ours.
Our standards are basically Human Made's coding standards with a few tweaks:
- Use camelCase for class methods & properties, UPPERCASE for class constants, snake_case everywhere else.
- PHP Sessions are allowed.
- A few more...
Tips
Pressbooks classes that extend WP Core classes will fail the PSR1.Methods.CamelCapsMethodName rule. In those cases, add something like this in your phpcs.ruleset.xml file:
<rule ref="PSR1.Methods.CamelCapsMethodName" > <exclude-pattern>/inc/admin/class-catalog-list-table.php</exclude-pattern> <exclude-pattern>/inc/admin/class-network-managers-list-table.php</exclude-pattern> <exclude-pattern>/api/endpoints/controller/*</exclude-pattern> </rule>
Link to docs: https://docs.pressbooks.org/coding-standards/
统计信息
- 总下载量: 24.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 13
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2018-07-10