PhpStorm @noinspection

Nicht immer sind Inspection Warnungen lösbar weil sie im Prinzip korrekt sind. Trotzdem wäre ein fehler- und warnungsfreie Anzeige wünschenswert. Mit diesen Kommentaren ist das erreichbar.

Ausgangssituation

$configuration = require_once($projectPath . $localConfigurationFilePath);

Vorheriger Code führt normalerweise zur Ausgabe der Warnung:

Dynamic include expression 'require_once($projectPath . $localConfigurationFilePath)' is not analysed.

Mögliche Anpassung

durch das hinzufügen des folgenden Kommentars kann diese Warnung übergangen werden.

/** @noinspection PhpIncludeInspection */

Diese Anpassung sollte aber nur dann vorgenommen werden wenn man sicher ist, dass dadurch nicht Fehler verdeckt werden, auf die man eigentlich aufmerksam gemacht werden soll.

Weitere Warnungen die unterdrück werden können

javascript

Oops, an error occurred! Code: 2020112717111184b7e50b

watcher

Oops, an error occurred! Code: 20201127171111ce225ece

css

Oops, an error occurred! Code: 20201127171111a9fa9284

sql

Oops, an error occurred! Code: 202011271711114ad9c52a

oracle

Oops, an error occurred! Code: 2020112717111151228ddb

postgresql

Oops, an error occurred! Code: 202011271711111f2a2826

php

PhpUndefinedGotoLabelInspection Undefined goto label
PhpUndefinedVariableInspection Undefined variable
PhpUndefinedMethodInspection Undefined method
PhpUndefinedNamespaceInspection Undefined namespace
PhpUndefinedClassInspection Undefined class
PhpUndefinedFunctionInspection Undefined function
PhpUndefinedCallbackInspection Undefined callback
PhpDynamicAsStaticMethodCallInspection Dynamic method called as static
PhpStaticAsDynamicMethodCallInspection Static method called as dynamic
PhpAbstractStaticMethodInspection Static function should not be abstract
PhpSignatureMismatchDuringInheritanceInspection Declaration of overridden method should be compatible with parent class
PhpHierarchyChecksInspection  
PhpUndefinedClassConstantInspection Undefined class constant
PhpMissingParentConstructorInspection Missing parent call for constructor
PhpMissingParentCallCommonInspection Missing parent call for method
PhpMissingParentCallMagicInspection Missing parent call for magic methods
PhpUndefinedFieldInspection Undefined field
PhpUndefinedConstantInspection Undefined constant
PhpIncludeInspection Unresolved include
PhpParamsInspection Parameter type
PhpPassByRefInspection Pass parameter by reference
PhpGotoIntoLoopInspection Goto into loop statement
PhpUnusedPrivateMethodInspection Unused private method
PhpUnusedPrivateFieldInspection Unused private field
PhpUnusedLocalVariableInspection Unused local variable
PhpUnusedAliasInspection Unused import
PhpLanguageLevelInspection Language Level
PhpUnreachableStatementInspection  
PhpDeprecationInspection Deprecated
PhpInternalEntityUsedInspection Usage of internal entity
PhpToStringReturnInspection Method __toString return type
PhpToStringImplementationInspection Method __toString implementation
PhpNonCompoundUseInspection Unnecessary statement use
PhpConstantReassignmentInspection Constant reassignment
PhpWrongStringConcatenationInspection Wrong string concatenation
PhpWrongCatchClausesOrderInspection Wrong catch clauses order
PhpAssignmentInConditionInspection Assignment in condition
PhpDivisionByZeroInspection Division by zero
PhpWrongForeachArgumentTypeInspection Invalid argument supplied for foreach()
PhpUnusedParameterInspection Unused parameter
PhpMissingDocCommentInspection Missing PHPDoc comment
PhpSillyAssignmentInspection Silly assignment
PhpIllegalArrayKeyTypeInspection Illegal array key type
PhpDocSignatureInspection PHPDoc comment matches function/method signature
PhpDocMissingThrowsInspection Missing @throws tag(s)
PhpDocMissingReturnTagInspection Missing @return tag
PhpInconsistentReturnPointsInspection Inconsistent return points
PhpMethodParametersCountMismatchInspection Parameters number mismatch declaration
PhpTooManyParametersInspection Too many parameters in function declaration
PhpRedundantClosingTagInspection Redundant closing tag
PhpVoidFunctionResultUsedInspection Void function result used
PhpExpressionResultUnusedInspection Expression result unused
PhpMethodOrClassCallIsNotCaseSensitiveInspection Case mismatch in method call or class usage
PhpClassNamingConventionInspection Class name is not following coding convention
PhpFunctionNamingConventionInspection Function name is not following coding convention
PhpMethodNamingConventionInspection Method name is not following coding convention
PhpPropertyNamingConventionInspection Property name is not following coding convention
PhpVariableNamingConventionInspection Variable name is not following coding convention
PhpConstantNamingConventionInspection Constant name is not following coding convention
PhpUnusedClassInspection Unused class
PhpUnusedFunctionInspection Unused function
PhpMissingBreakStatementInspection Missing 'break' statement
PhpForeachNestedOuterKeyValueVariablesConflictInspection Nested vs outer 'foreach' variables conflict
PhpForeachArrayIsUsedAsValueInspection Foreach array is used as value
PhpUsageOfSilenceOperatorInspection Usage of a silence operator
PhpCSValidationInspection PHP Code Sniffer validation
MessDetectorValidationInspection PHP Mess Detector validation
PhpDuplicateArrayKeysInspection  
PhpUnnecessaryFullyQualifiedNameInspection Unnecessary fully qualified name
PhpDuplicateCaseInspection Duplicate case in switch statement
PhpMultipleClassesDeclarationsInOneFile Multiple classes declarations in one file
PhpIllegalPsrClassPathInspection Class path doesn't match project structure
PhpTraditionalSyntaxArrayLiteralInspection Traditional syntax array literal detected
Php7ReadinessInspection PHP 7 Compatibility
PhpVariableVariableInspection Usage of a variable variable
PhpStrictTypeCheckingInspection Strict type checking rules violation
PhpIncompatibleReturnTypeInspection Incompatible return type
PhpMissingStrictTypesDeclarationInspection Missing strict types declaration
PhpInvalidMagicMethodModifiersInspection Invalid magic method modifiers

php blade

Oops, an error occurred! Code: 202011271711118645eddf

ini

Oops, an error occurred! Code: 20201127171111cfea6b61

coffeescript

Oops, an error occurred! Code: 202011271711116d82dfe0

xpath

Oops, an error occurred! Code: 20201127171111ad721646

cucumber

Oops, an error occurred! Code: 20201127171111cb667481

less

Oops, an error occurred! Code: 202011271711117755e2b4

scss

Oops, an error occurred! Code: 202011271711119341ada6
Meine Mission

Ziel meiner Veröffentlichungen ist es, meine Begeisterung für die Programmierung und das über die Jahre gewonnene Wissen mit anderen Entwicklern zu teilen. Dabei ist es mir wichtig, Lösungen zu thematisieren für die ich in Suchmaschinen keine Antworten finden konnte. Außerdem versuche ich die von mir veröffentlichten Extensions an Beispielen zu erläutern.

evoWeb © 2019