2017-02-13 05:59:33 +01:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<psalm
|
|
|
|
name="Example Psalm config with recommended defaults"
|
|
|
|
useDocblockTypes="true"
|
|
|
|
totallyTyped="false"
|
|
|
|
>
|
|
|
|
<projectFiles>
|
|
|
|
<directory name="src" />
|
|
|
|
</projectFiles>
|
|
|
|
|
|
|
|
<issueHandlers>
|
2017-03-18 17:25:42 +01:00
|
|
|
<LessSpecificReturnType errorLevel="info" />
|
|
|
|
|
2017-02-13 05:59:33 +01:00
|
|
|
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
|
|
|
|
|
|
|
|
<DeprecatedMethod errorLevel="info" />
|
|
|
|
|
|
|
|
<MissingClosureReturnType errorLevel="info" />
|
|
|
|
<MissingReturnType errorLevel="info" />
|
|
|
|
<MissingPropertyType errorLevel="info" />
|
|
|
|
<InvalidDocblock errorLevel="info" />
|
|
|
|
<MisplacedRequiredParam errorLevel="info" />
|
|
|
|
|
|
|
|
<PropertyNotSetInConstructor errorLevel="info" />
|
|
|
|
<MissingConstructor errorLevel="info" />
|
2017-09-02 17:18:56 +02:00
|
|
|
<UntypedParam errorLevel="info" />
|
2017-02-13 05:59:33 +01:00
|
|
|
|
|
|
|
<!-- level 4 issues - points to possible deficiencies in logic, higher false-positives -->
|
|
|
|
|
|
|
|
<MoreSpecificReturnType errorLevel="info" />
|
|
|
|
<TypeCoercion errorLevel="info" />
|
2017-11-28 06:46:41 +01:00
|
|
|
<RedundantCondition errorLevel="info" />
|
2017-02-13 05:59:33 +01:00
|
|
|
|
2018-01-10 17:01:32 +01:00
|
|
|
<PossiblyFalseArgument errorLevel="info" />
|
|
|
|
<PossiblyFalsePropertyAssignmentValue errorLevel="info" />
|
|
|
|
<PossiblyFalseReference errorLevel="info" />
|
|
|
|
<PossiblyInvalidArgument errorLevel="info" />
|
|
|
|
<PossiblyInvalidArrayAccess errorLevel="info" />
|
2018-01-10 16:56:43 +01:00
|
|
|
<PossiblyInvalidArrayAssignment errorLevel="info" />
|
|
|
|
<PossiblyInvalidMethodCall errorLevel="info" />
|
|
|
|
<PossiblyInvalidPropertyAssignment errorLevel="info" />
|
|
|
|
<PossiblyInvalidPropertyAssignmentValue errorLevel="info" />
|
|
|
|
<PossiblyInvalidPropertyFetch errorLevel="info" />
|
2017-02-13 05:59:33 +01:00
|
|
|
<PossiblyNullArgument errorLevel="info" />
|
|
|
|
<PossiblyNullArrayAccess errorLevel="info" />
|
2018-01-10 16:56:43 +01:00
|
|
|
<PossiblyNullArrayAssignment errorLevel="info" />
|
|
|
|
<PossiblyNullArrayOffset errorLevel="info" />
|
|
|
|
<PossiblyNullFunctionCall errorLevel="info" />
|
|
|
|
<PossiblyNullIterator errorLevel="info" />
|
2017-02-13 05:59:33 +01:00
|
|
|
<PossiblyNullOperand errorLevel="info" />
|
|
|
|
<PossiblyNullPropertyAssignment errorLevel="info" />
|
2018-01-10 17:01:32 +01:00
|
|
|
<PossiblyNullPropertyAssignmentValue errorLevel="info" />
|
2017-02-13 05:59:33 +01:00
|
|
|
<PossiblyNullPropertyFetch errorLevel="info" />
|
|
|
|
<PossiblyNullReference errorLevel="info" />
|
2018-01-10 16:56:43 +01:00
|
|
|
<PossiblyUndefinedGlobalVariable errorLevel="info" />
|
2017-02-13 05:59:33 +01:00
|
|
|
<PossiblyUndefinedVariable errorLevel="info" />
|
2018-01-10 16:56:43 +01:00
|
|
|
<PossiblyUndefinedMethod errorLevel="info" />
|
2017-02-13 05:59:33 +01:00
|
|
|
|
|
|
|
<!-- level 5 issues - should be avoided at mosts costs... -->
|
|
|
|
|
|
|
|
<ForbiddenCode errorLevel="info" />
|
|
|
|
<ImplicitToStringCast errorLevel="info" />
|
|
|
|
<InvalidScalarArgument errorLevel="info" />
|
|
|
|
<InvalidToString errorLevel="info" />
|
|
|
|
<MethodSignatureMismatch errorLevel="info" />
|
|
|
|
<NoInterfaceProperties errorLevel="info" />
|
|
|
|
<TooManyArguments errorLevel="info" />
|
|
|
|
<TypeDoesNotContainType errorLevel="info" />
|
|
|
|
</issueHandlers>
|
|
|
|
</psalm>
|