forked from CakeDC/Enum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e606a4
commit 0447fec
Showing
5 changed files
with
23 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,126 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
totallyTyped="false" | ||
allowCoercionFromStringToClassConst="true" | ||
allowStringToStandInForClass="true" | ||
errorLevel="3" | ||
resolveFromConfigFile="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" | ||
findUnusedBaselineEntry="true" | ||
findUnusedCode="false" | ||
> | ||
<projectFiles> | ||
<directory name="src" /> | ||
<ignoreFiles> | ||
<directory name="vendor" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
|
||
<issueHandlers> | ||
<LessSpecificReturnType errorLevel="info" /> | ||
|
||
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives --> | ||
|
||
<MissingClosureReturnType errorLevel="info" /> | ||
<MissingPropertyType errorLevel="info" /> | ||
|
||
<PropertyNotSetInConstructor errorLevel="info" /> | ||
<MissingConstructor> | ||
</MissingConstructor> | ||
<MissingClosureParamType errorLevel="info" /> | ||
<MissingParamType errorLevel="info" /> | ||
|
||
<RedundantCondition> | ||
<errorLevel type="suppress"> | ||
</errorLevel> | ||
</RedundantCondition> | ||
|
||
<DocblockTypeContradiction errorLevel="info" /> | ||
<RedundantConditionGivenDocblockType errorLevel="info" /> | ||
|
||
<UnresolvableInclude errorLevel="info" /> | ||
|
||
<!-- level 4 issues - points to possible deficiencies in logic, higher false-positives --> | ||
|
||
<MoreSpecificReturnType errorLevel="info" /> | ||
<LessSpecificReturnStatement errorLevel="info" /> | ||
<TypeCoercion errorLevel="info" /> | ||
|
||
<PossiblyInvalidArrayAccess errorLevel="info" /> | ||
<PossiblyInvalidArrayOffset errorLevel="info" /> | ||
<PossiblyInvalidFunctionCall errorLevel="info" /> | ||
<PossiblyInvalidIterator errorLevel="info" /> | ||
<PossiblyInvalidMethodCall errorLevel="info" /> | ||
<PossiblyInvalidOperand errorLevel="info" /> | ||
<PossiblyInvalidPropertyAssignment errorLevel="info" /> | ||
<PossiblyNullArgument errorLevel="info" /> | ||
<PossiblyNullArrayAccess errorLevel="info" /> | ||
<PossiblyNullArrayAssignment errorLevel="info" /> | ||
<PossiblyNullArrayOffset 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 --> | ||
|
||
<NullableReturnStatement> | ||
<errorLevel type="suppress"> | ||
</errorLevel> | ||
</NullableReturnStatement> | ||
|
||
<MoreSpecificImplementedParamType errorLevel="info" /> | ||
<LessSpecificImplementedReturnType errorLevel="info" /> | ||
|
||
<!-- level 7 issues - even worse --> | ||
<InvalidArgument errorLevel="info" /> | ||
|
||
<InvalidPropertyAssignmentValue> | ||
<errorLevel type="suppress"> | ||
</errorLevel> | ||
</InvalidPropertyAssignmentValue> | ||
|
||
<!-- CakePHP Specific --> | ||
<DeprecatedClass> | ||
<errorLevel type="suppress"> | ||
</errorLevel> | ||
</DeprecatedClass> | ||
|
||
<PossiblyUndefinedArrayOffset> | ||
</PossiblyUndefinedArrayOffset> | ||
|
||
<UndefinedConstant errorLevel="suppress" /> | ||
|
||
<UndefinedPropertyAssignment> | ||
</UndefinedPropertyAssignment> | ||
|
||
<UndefinedPropertyFetch> | ||
</UndefinedPropertyFetch> | ||
|
||
<EmptyArrayAccess> | ||
</EmptyArrayAccess> | ||
|
||
<LoopInvalidation> | ||
</LoopInvalidation> | ||
|
||
<UndefinedClass> | ||
</UndefinedClass> | ||
|
||
<UndefinedMethod> | ||
</UndefinedMethod> | ||
|
||
<NullReference> | ||
</NullReference> | ||
|
||
<PossiblyUndefinedMethod> | ||
</PossiblyUndefinedMethod> | ||
|
||
</issueHandlers> | ||
</psalm> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters