5 Star 1 Fork 0

Gitee 极速下载/october

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/octobercms/october
克隆/下载
phpcs.xml 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
Sam Georges 提交于 2022-09-28 10:05 . Update developer tools
<?xml version="1.0"?>
<ruleset name="October CMS">
<description>The coding standard for October CMS.</description>
<rule ref="PSR2">
<!--
Exceptions to the PSR-2 guidelines as per our Developer Guide:
https://octobercms.com/help/guidelines/developer#psr-exceptions
-->
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace" />
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" />
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction"/>
<exclude name="Generic.Files.LineLength"/>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<!-- Migration files and tests do not need a namespace defined -->
<exclude-pattern>*/database/migrations/*\.php</exclude-pattern>
</rule>
<file>app/</file>
<file>config/</file>
<file>modules/</file>
<file>plugins/october/demo/</file>
<!-- Ignore vendor files -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Ignore tests -->
<exclude-pattern>*/modules/*/tests/*</exclude-pattern>
<!-- Ignore views -->
<exclude-pattern>*/modules/*/views/*</exclude-pattern>
<!-- Ignore backend UI -->
<exclude-pattern>*/modules/*/elements/*</exclude-pattern>
<!-- Ignore controllers, layouts -->
<exclude-pattern>*/modules/*/layouts/*</exclude-pattern>
<exclude-pattern>*/modules/*/controllers/*/*</exclude-pattern>
<!-- Ignore partial views -->
<exclude-pattern>*/modules/**/_*</exclude-pattern>
</ruleset>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/october.git
[email protected]:mirrors/october.git
mirrors
october
october
3.x

搜索帮助