Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

IntelliJ PHP Inspection

PHP Inspection で method に final をつける warning とかを都合のいいようにした設定。

読み込み方

  1. ⌘-, -> Editor > Inspectionsを開く
  2. 歯車から Import Profiles...
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="atys php inspection" />
<inspection_tool class="ClassNameCollisionInspection" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="JSDuplicatedDeclaration" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="MethodCanBePrivateInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="MethodShouldBeFinalInspection" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="MissingParameterTypeDeclarationInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="MissingReturnTypeInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="ToStringCallInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="VirtualTypeCheckInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="VueDuplicateTag" enabled="false" level="WARNING" enabled_by_default="false" />
</profile>
</component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment