Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
options for phpStorm @noinspection annotation
javascript
ES6ValidationInspection
JSAccessibilityCheckInspection
JSBitwiseOperatorUsageInspection
JSCheckFunctionSignaturesInspection
JSClosureCompilerSyntaxInspection
JSCommentMatchesSignatureInspection
JSComparisonWithNaNInspection
JSConsecutiveCommasInArrayLiteralInspection
JSConstructorReturnsPrimitiveInspection
JSDeclarationsAtScopeStartInspection
JSDeprecatedSymbolsInspection
JSDuplicatedDeclarationInspection
JSJQueryEfficiencyInspection
JSLastCommaInArrayLiteralInspection
JSLastCommaInObjectLiteralInspection
JSMethodCanBeStaticInspection
JSMismatchedCollectionQueryUpdateInspection
JSPotentiallyInvalidConstructorUsageInspection
JSPotentiallyInvalidTargetOfIndexedPropertyAccess
JSPotentiallyInvalidUsageOfThisInspection
JSPrimitiveTypeWrapperUsageInspection
JSReferencingMutableVariableFromClosureInspection
JSSuspiciousNameCombinationInspection
JSUndeclaredVariableInspection
JSUndefinedPropertyAssignmentInspection
JSUnfilteredForInLoopInspection
JSUnnecessarySemicolonInspection
JSUnresolvedFunctionInspection
JSUnresolvedLibraryURLInspection
JSUnresolvedVariableInspection
JSUnusedAssignmentInspection
JSUnusedGlobalSymbolsInspection
JSUnusedLocalSymbolsInspection
JSValidateJSDocInspection
JSValidateTypesInspection
watcher
TaskInspection
TaskProblemsInspection
css
CssFloatPxLengthInspection
CssNoGenericFontNameInspection
CssUnitlessNumberInspection
CssConvertColorToHexInspection
CssConvertColorToRgbInspection
CssInvalidElementInspection
CssNegativeValueInspection
CssOptimizeSimilarPropertiesInspection
CssOverwrittenPropertiesInspection
CssUnknownPropertyInspection
CssUnusedSymbolInspection
CssInvalidAtRuleInspection
CssInvalidCharsetRuleInspection
CssInvalidFunctionInspection
CssInvalidHtmlTagReferenceInspection
CssInvalidImportInspection
CssInvalidMediaFeatureInspection
CssInvalidPropertyValueInspection
CssInvalidPseudoSelectorInspection
CssUnknownTargetInspection
CssMissingSemicolonInspection
CssRedundantUnitInspection
sql
SqlAddNotNullColumnInspection
SqlAmbiguousColumnInspection
SqlAutoIncrementDuplicateInspection
SqlCheckUsingColumnsInspection
SqlConstantConditionInspection
SqlDerivedTableAliasInspection
SqlDialectInspection
SqlDropIndexedColumnInspection
SqlIdentifierInspection
SqlInsertValuesInspection
SqlNoDataSourceInspection
SqlNullComparisonInspection
SqlResolveInspection
SqlShouldBeInGroupByInspection
SqlTypeInspection
oracle
SqlDeprecateTypeInspection
postgresql
SqlPostgresqlSelectFromProcedureInspection
php
PhpAbstractStaticMethodInspection
PhpHierarchyChecksInspection
PhpUnreachableStatementInspection
PhpUnusedLocalVariableInspection
PhpWrongCatchClausesOrderInspection
PhpDeprecationInspection
PhpDocMissingReturnTagInspection
PhpDocMissingThrowsInspection
PhpDocSignatureInspection
PhpMissingDocCommentInspection
PhpDuplicateArrayKeysInspection
PhpDuplicateCaseInspection
PhpDynamicAsStaticMethodCallInspection
PhpExpressionResultUnusedInspection
PhpForeachArrayIsUsedAsValueInspection
PhpForeachNestedOuterKeyValueVariablesConflictInspection
PhpIllegalArrayKeyTypeInspection
PhpIncludeInspection
PhpInconsistentReturnPointsInspection
PhpInternalEntityUsedInspection
PhpLanguageLevelInspection
PhpMissingBreakStatementInspection
PhpParamsInspection
PhpPassByRefInspection
PhpRedundantClosingTagInspection
PhpSillyAssignmentInspection
PhpTraditionalSyntaxArrayLiteralInspection
PhpUndefinedCallbackInspection
PhpUndefinedClassConstantInspection
PhpUndefinedClassInspection
PhpUndefinedConstantInspection
PhpUndefinedFieldInspection
PhpUndefinedFunctionInspection
PhpUndefinedGotoLabelInspection
PhpUndefinedMethodInspection
PhpUndefinedNamespaceInspection
PhpUndefinedVariableInspection
PhpUnnecessaryFullyQualifiedNameInspection
PhpUnusedAliasInspection
PhpUnusedClassInspection
PhpUnusedFunctionInspection
PhpUnusedParameterInspection
PhpUnusedPrivateFieldInspection
PhpUnusedPrivateMethodInspection
PhpUsageOfSilenceOperatorInspection
PhpVoidFunctionResultUsedInspection
PhpWrongForeachArgumentTypeInspection
PhpAssignmentInConditionInspection
PhpConstantReassignmentInspection
PhpDivisionByZeroInspection
PhpNonCompoundUseInspection
PhpToStringImplementationInspection
PhpToStringReturnInspection
PhpWrongStringConcatenationInspection
PhpIllegalPsrClassPathInspection
PhpMultipleClassesDeclarationsInOneFile
php blade
BladeClosingSectionInspection
BladeControlDirectivesInspection
ini
DuplicateKeyInspection
DuplicateSectionInspection
coffeescript
CoffeeScriptInfiniteLoopInspection
CoffeeScriptSillyAssignmentInspection
CoffeeScriptSwitchStatementWithNoDefaultBranchInspection
CoffeeScriptUnusedLocalSymbolsInspection
xpath
CheckNodeTest
HardwiredNamespacePrefix
ImplicitTypeConversion
IndexZeroPredicate
RedundantTypeConversion
TemplateInvocationInspection
UnusedElementInspection
VariableShadowingInspection
XsltDeclarationInspection
cucumber
CucumberExamplesColonInspection
CucumberMissedExamplesInspection
CucumberStepInspection
CucumberTableInspection
GherkinBrokenTableInspection
GherkinMisplacedBackgroundInspection
less
LessResolvedByNameOnlyInspection
LessUnresolvedMixinInspection
LessUnresolvedVariableInspection
scss
SassScssResolvedByNameOnlyInspection
SassScssUnresolvedMixinInspection
SassScssUnresolvedPlaceholderSelectorInspection
SassScssUnresolvedVariableInspection
@user11235813

This comment has been minimized.

Copy link

user11235813 commented Jul 7, 2016

202a203,206
> 
> spelling
> 
> SpellCheckingInspection
\ No newline at end of file
@skeets23

This comment has been minimized.

Copy link

skeets23 commented Mar 3, 2017

Thanks for this list! How did you find all of these?

@adawolfa

This comment has been minimized.

Copy link

adawolfa commented Mar 20, 2017

@skeets23 You can find all inspections for PHP in your PhpStorm installation: plugins/php/lib/resources_en.jar/inspectionDescriptions.
There is a HTML file with its description for every inspection.

@SyuTingSong

This comment has been minimized.

Copy link

SyuTingSong commented Mar 27, 2017

For my macOS, it's under ~/Library/Application Support/IntelliJIdea2017.1/php/lib instead of /Applications/IntelliJ IDEA.app/....
Change 2017.1 to your installed version.

@jleaders

This comment has been minimized.

Copy link

jleaders commented May 5, 2018

Can you apply this to an entire file? Or does it only affect the adjacent statement?

@KartaviK

This comment has been minimized.

Copy link

KartaviK commented Aug 16, 2018

forgot:
PhpUnhandledExceptionInspection

@Mykola-Veriga

This comment has been minimized.

Copy link

Mykola-Veriga commented Jan 25, 2019

/* @noinspection PhpAbstractStaticMethodInspection */
/* @noinspection PhpHierarchyChecksInspection */
/* @noinspection PhpUnreachableStatementInspection */
/* @noinspection PhpUnusedLocalVariableInspection */
/* @noinspection PhpWrongCatchClausesOrderInspection */
/* @noinspection PhpDeprecationInspection */
/* @noinspection PhpDocMissingReturnTagInspection */
/* @noinspection PhpDocMissingThrowsInspection */
/* @noinspection PhpDocSignatureInspection */
/* @noinspection PhpMissingDocCommentInspection */
/* @noinspection PhpDuplicateArrayKeysInspection */
/* @noinspection PhpDuplicateCaseInspection */
/* @noinspection PhpDynamicAsStaticMethodCallInspection */
/* @noinspection PhpExpressionResultUnusedInspection */
/* @noinspection PhpForeachArrayIsUsedAsValueInspection */
/* @noinspection PhpForeachNestedOuterKeyValueVariablesConflictInspection */
/* @noinspection PhpIllegalArrayKeyTypeInspection */
/* @noinspection PhpIncludeInspection */
/* @noinspection PhpInconsistentReturnPointsInspection */
/* @noinspection PhpInternalEntityUsedInspection */
/* @noinspection PhpLanguageLevelInspection */
/* @noinspection PhpMissingBreakStatementInspection */
/* @noinspection PhpParamsInspection */
/* @noinspection PhpPassByRefInspection */
/* @noinspection PhpRedundantClosingTagInspection */
/* @noinspection PhpSillyAssignmentInspection */
/* @noinspection PhpTraditionalSyntaxArrayLiteralInspection */
/* @noinspection PhpUndefinedCallbackInspection */
/* @noinspection PhpUndefinedClassConstantInspection */
/* @noinspection PhpUndefinedClassInspection */
/* @noinspection PhpUndefinedConstantInspection */
/* @noinspection PhpUndefinedFieldInspection */
/* @noinspection PhpUndefinedFunctionInspection */
/* @noinspection PhpUndefinedGotoLabelInspection */
/* @noinspection PhpUndefinedMethodInspection */
/* @noinspection PhpUndefinedNamespaceInspection */
/* @noinspection PhpUndefinedVariableInspection */
/* @noinspection PhpUnnecessaryFullyQualifiedNameInspection */
/* @noinspection PhpUnusedAliasInspection */
/* @noinspection PhpUnusedClassInspection */
/* @noinspection PhpUnusedFunctionInspection */
/* @noinspection PhpUnusedParameterInspection */
/* @noinspection PhpUnusedPrivateFieldInspection */
/* @noinspection PhpUnusedPrivateMethodInspection */
/* @noinspection PhpUsageOfSilenceOperatorInspection */
/* @noinspection PhpVoidFunctionResultUsedInspection */
/* @noinspection PhpWrongForeachArgumentTypeInspection */
/* @noinspection PhpAssignmentInConditionInspection */
/* @noinspection PhpConstantReassignmentInspection */
/* @noinspection PhpDivisionByZeroInspection */
/* @noinspection PhpNonCompoundUseInspection */
/* @noinspection PhpToStringImplementationInspection */
/* @noinspection PhpToStringReturnInspection */
/* @noinspection PhpWrongStringConcatenationInspection */
/* @noinspection PhpIllegalPsrClassPathInspection */
/* @noinspection PhpMultipleClassesDeclarationsInOneFile */
/* @noinspection PhpUnhandledExceptionInspection */

@j13k

This comment has been minimized.

Copy link

j13k commented Apr 29, 2019

Another one: /** noinspection PhpRedundantCatchClauseInspection */ will suppress "Exception 'x' is never thrown in the corresponding try block" notices.

@ivanbogomoloff

This comment has been minimized.

Copy link

ivanbogomoloff commented Jul 12, 2019

Another one: /** @noinspection PhpMissingParentConstructorInspection */ will suppress __construct without parent::__construct call.

@vadik2014

This comment has been minimized.

Copy link

vadik2014 commented Aug 5, 2019

/** @noinspection SqlResolveInspection */ won't work in 2019.2, use /** @noinspection SqlResolve */ instead

@mingalevme

This comment has been minimized.

Copy link

mingalevme commented Aug 8, 2019

/** @noinspection PhpIncompatibleReturnTypeInspection https://gist.github.com/discordier/ed4b9cba14652e7212f5 */ for "Return value is expected to be ..."

@jstanden

This comment has been minimized.

Copy link

jstanden commented Sep 24, 2019

// noinspection ES6ConvertVarToLetConst will suppress "'var' used instead of 'let' or 'const'" in Javascript files.

@mingalevme

This comment has been minimized.

Copy link

mingalevme commented Nov 13, 2019

Any ideas for PHP wrong function argument "Expected MySimpleXmlElement, got \SimpleXmlElement"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.