Skip to content

Instantly share code, notes, and snippets.

@a-yasui
Created February 18, 2020 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-yasui/4c6fe24334b87e5066b481c53af1ed9a to your computer and use it in GitHub Desktop.
Save a-yasui/4c6fe24334b87e5066b481c53af1ed9a to your computer and use it in GitHub Desktop.

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