| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <?xml version="1.0"?>
- <psalm
- totallyTyped="false"
- allowCoercionFromStringToClassConst="true"
- allowStringToStandInForClass="true"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="https://getpsalm.org/schema/config"
- xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
- >
- <projectFiles>
- <directory name="src" />
- <ignoreFiles>
- <directory name="vendor" />
- <directory name="src/TestSuite" />
- <directory name="src/Filesystem"/>
- </ignoreFiles>
- </projectFiles>
- <issueHandlers>
- <LessSpecificReturnType errorLevel="info" />
- <!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
- <MissingClosureReturnType errorLevel="info" />
- <MissingReturnType errorLevel="info" />
- <MissingPropertyType errorLevel="info" />
- <InvalidDocblock errorLevel="info" />
- <MisplacedRequiredParam errorLevel="info" />
- <PropertyNotSetInConstructor errorLevel="info" />
- <MissingConstructor errorLevel="info" />
- <MissingClosureParamType errorLevel="info" />
- <MissingParamType errorLevel="info" />
- <RedundantCondition>
- <errorLevel type="suppress">
- <file name="src/Utility/Hash.php" />
- </errorLevel>
- </RedundantCondition>
- <DocblockTypeContradiction errorLevel="info" />
- <RedundantConditionGivenDocblockType errorLevel="info" />
- <UnresolvableInclude errorLevel="info" />
- <RawObjectIteration errorLevel="info" />
- <!-- level 4 issues - points to possible deficiencies in logic, higher false-positives -->
- <MoreSpecificReturnType errorLevel="info" />
- <LessSpecificReturnStatement errorLevel="info" />
- <TypeCoercion errorLevel="info" />
- <PossiblyFalseArgument errorLevel="info" />
- <PossiblyFalseIterator errorLevel="info" />
- <PossiblyFalseOperand errorLevel="info" />
- <PossiblyFalsePropertyAssignmentValue errorLevel="info" />
- <PossiblyFalseReference errorLevel="info" />
- <PossiblyInvalidArgument errorLevel="info" />
- <PossiblyInvalidArrayAccess errorLevel="info" />
- <PossiblyInvalidArrayAssignment errorLevel="info" />
- <PossiblyInvalidArrayOffset errorLevel="info" />
- <PossiblyInvalidFunctionCall errorLevel="info" />
- <PossiblyInvalidIterator errorLevel="info" />
- <PossiblyInvalidMethodCall errorLevel="info" />
- <PossiblyInvalidOperand errorLevel="info" />
- <PossiblyInvalidPropertyAssignment errorLevel="info" />
- <PossiblyInvalidPropertyAssignmentValue errorLevel="info" />
- <PossiblyInvalidPropertyFetch errorLevel="info" />
- <PossiblyNullArgument errorLevel="info" />
- <PossiblyNullArrayAccess errorLevel="info" />
- <PossiblyNullArrayAssignment errorLevel="info" />
- <PossiblyNullArrayOffset errorLevel="info" />
- <PossiblyNullFunctionCall errorLevel="info" />
- <PossiblyNullIterator errorLevel="info" />
- <PossiblyNullOperand errorLevel="info" />
- <PossiblyNullPropertyAssignment errorLevel="info" />
- <PossiblyNullPropertyAssignmentValue errorLevel="info" />
- <PossiblyNullPropertyFetch errorLevel="info" />
- <PossiblyNullReference errorLevel="info" />
- <!-- level 5 issues - should be avoided at mosts costs... -->
- <InvalidScalarArgument errorLevel="info" />
- <InvalidOperand errorLevel="info" />
- <NoInterfaceProperties errorLevel="info" />
- <TypeDoesNotContainType errorLevel="info" />
- <TypeDoesNotContainNull errorLevel="info" />
- <ImplementedReturnTypeMismatch errorLevel="info" />
- <!-- level 6 issues - really bad things -->
- <InvalidNullableReturnType errorLevel="info" />
- <NullableReturnStatement errorLevel="info" />
- <MoreSpecificImplementedParamType errorLevel="info" />
- <LessSpecificImplementedReturnType errorLevel="info" />
- <InvalidReturnType errorLevel="info" />
- <!-- level 7 issues - even worse -->
- <InvalidArgument errorLevel="info" />
- <InvalidPropertyAssignmentValue>
- <errorLevel type="suppress">
- <file name="src/Console/ConsoleInputSubcommand.php" />
- <file name="src/I18n/DateFormatTrait.php" />
- </errorLevel>
- </InvalidPropertyAssignmentValue>
- <!-- CakePHP Specific -->
- <DeprecatedClass>
- <errorLevel type="suppress">
- <file name="src/Console/Shell.php" />
- <file name="src/Console/ShellDispatcher.php" />
- <directory name="src/Shell" />
- </errorLevel>
- </DeprecatedClass>
- <PossiblyUndefinedArrayOffset>
- <errorLevel type="suppress">
- <file name="src/Database/Driver/Mysql.php" />
- <file name="src/I18n/Parser/PoFileParser.php" />
- <file name="src/Database/Schema/SqlserverSchema.php" />
- <file name="src/Http/ResponseEmitter.php" />
- <file name="src/View/Helper/PaginatorHelper.php" />
- <file name="src/View/Widget/RadioWidget.php" />
- </errorLevel>
- </PossiblyUndefinedArrayOffset>
- <UndefinedConstant errorLevel="suppress" />
- <UndefinedPropertyAssignment>
- <errorLevel type="suppress">
- <file name="src/Core/StaticConfigTrait.php" />
- <file name="src/Database/Log/LoggingStatement.php" />
- <file name="src/Http/ServerRequestFactory.php" />
- </errorLevel>
- </UndefinedPropertyAssignment>
- <UndefinedPropertyFetch>
- <errorLevel type="suppress">
- <file name="src/Core/StaticConfigTrait.php" />
- </errorLevel>
- </UndefinedPropertyFetch>
- <EmptyArrayAccess>
- <errorLevel type="suppress">
- <file name="src/Database/Dialect/SqlserverDialectTrait.php" />
- </errorLevel>
- </EmptyArrayAccess>
- <LoopInvalidation>
- <errorLevel type="suppress">
- <file name="src/View/Form/EntityContext.php" />
- <file name="src/Core/Configure/Engine/IniConfig.php" />
- </errorLevel>
- </LoopInvalidation>
- <UndefinedClass>
- <errorLevel type="suppress">
- <file name="src/Cache/Engine/MemcachedEngine.php" />
- <file name="src/Cache/Engine/RedisEngine.php" />
- <file name="src/ORM/Behavior/Translate/EavStrategy.php" />
- </errorLevel>
- </UndefinedClass>
- <UndefinedMethod>
- <errorLevel type="suppress">
- <file name="src/Console/Shell.php" />
- <file name="src/Controller/Component/AuthComponent.php" />
- <file name="src/Datasource/Paginator.php" />
- <file name="src/ORM/Association.php" />
- <file name="src/ORM/Association/BelongsToMany.php" />
- </errorLevel>
- </UndefinedMethod>
- <NullReference>
- <errorLevel type="suppress">
- <file name="src/Database/Driver.php" />
- </errorLevel>
- </NullReference>
- <PossiblyUndefinedMethod>
- <errorLevel type="suppress">
- <file name="src/ORM/LazyEagerLoader.php" />
- <file name="src/ORM/ResultSet.php" />
- <file name="src/View/XmlView.php" />
- </errorLevel>
- </PossiblyUndefinedMethod>
- <InvalidPassByReference>
- <errorLevel type="suppress">
- <file name="src/Console/ConsoleInput.php" />
- </errorLevel>
- </InvalidPassByReference>
- <InvalidCast>
- <errorLevel type="suppress">
- <file name="src/Core/functions.php" />
- </errorLevel>
- </InvalidCast>
- </issueHandlers>
- </psalm>
|