2 comments
Comment actions Permalink

Hi Bjørn,

"There is no such list and no plans creating it" -- that was the response for previous similar question (cannot find it right now, it was like 6 months ago or so).

You should either:

  • fix your code (if there is an error in your code);
  • if you believe that your code is OK, then you should not suppress the inspections but report a bug to the Issue Tracker (but please check if it is not reported already);
  • (as last resort) disable inspection completely (whole project) or for that statement only (via Alt+Enter -> Suppress for statement). Soon there will be possibility to disable it for whole file: http://youtrack.jetbrains.net/issue/WI-5784
0
Comment actions Permalink

Hi Andriy,

Thanks for the ALT-Enter tips, that will come in handy.

While your reply (and the one you refer to) seems to suggest otherwise, there are of course perfectly legitimate reasons for disabling inspections; this is after all static analysis of a dynamic language. Eg. disabling PHPIncludeInspection when writing an autoload handler.

Being piqued by the "there is no such list" statement, I did a bit of peeking with strings(1) and came up with this list, in case anyone (like me) is curious:

PhpAssignmentInConditionInspection
PhpDeprecationInspection
PhpDocMissingReturnTagInspection
PhpDocSignatureInspection
PhpDynamicAsStaticMethodCallInspection
PhpIllegalArrayKeyTypeInspection
PhpIncludeInspection
PhpInconsistentReturnPointsInspection
PhpMissingDocCommentInspection
PhpParamsInspection
PhpSillyAssignmentInspection
PhpUndefinedClassConstantInspection
PhpUndefinedClassInspection
PhpUndefinedConstantInspection
PhpUndefinedFieldInspection
PhpUndefinedFunctionInspection
PhpUndefinedMemberInspection
PhpUndefinedMethodInspection
PhpUndefinedNamespaceInspection
PhpUndefinedVariableInspection
PhpUnimplementedMethodsInspection
PhpUnreachableStatementInspection
PhpUnusedLocalVariableInspection
PhpUnusedParameterInspection
PhpUnusedPrivateFieldInspection
PhpWrongCatchClausesOrderInspection
PhpWrongForeachArgumentTypeInspection
PhpWrongStringConcatenationInspection



Cheers,
Bjørn
2

Please sign in to leave a comment.