maxictbv/coding-standard
最新稳定版本:1.0
Composer 安装命令:
composer require maxictbv/coding-standard
包简介
MaxICT Coding Standard
README 文档
README
A PHP_CodeSniffer coding standard to be used across MaxICT PHP code bases.
Installation
To install, run:
composer require --dev maxictbv/coding-standard
Copy the phpcs.xml.dist file to the root of your project.
Progressive Application
Most legacy codebases won't play nice with the full coding standard at the start. Introducing strict typing for example may cause major issues. To avoid these issues, the following approach can be used. It is a bit tedious, because unfortunately Codesniffer can only exclude rules (blacklist) and not whitelist:
- Copy the
phpcs.xml.distfile to the root of your project. - Add an exclusion for every sniff.
- Start removing exclusions one by one until an acceptable set is reached.
- When the codebase improves over time, re-evaluate from time to time if more rules can be enabled, and do so if that's the case.
统计信息
- 总下载量: 395
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-26