covanjiang / phpstorm-settings-mac

PHPStorm Settings On MacOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phpstorm-settings-mac

Mac OS PHPStorm settings.

配置

<?xml version="1.0"?>
<ruleset name="CustomStandard">
  <rule ref="PSR2">
    <!-- 隐藏命名空间反白 -->
    <!-- <exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/> -->
    <!-- 隐藏行代码字符数超出反白 --> 
    <exclude name="Generic.Files.LineLength"/>
  </rule>
  <rule ref="PSR1">
    <!-- 隐藏蛇形命名法反白 -->
    <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
  </rule>
</ruleset>

使用方法

image

  1. phpstorm > Preferences > Inspections , 展开 PHP > Quality tools, 选中 PHP_CodeSniffer validation, 点击右侧的 Coding standard..., 选择保存的文件.
  2. 点击右侧的 Coding standard 的下拉框, 选择 custom.

About

PHPStorm Settings On MacOS.