mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
62 lines
2.5 KiB
XML
62 lines
2.5 KiB
XML
<?xml version="1.0"?>
|
|
<psalm
|
|
name="Example Psalm config with recommended defaults"
|
|
stopOnFirstError="false"
|
|
useDocblockTypes="true"
|
|
totallyTyped="false"
|
|
>
|
|
<projectFiles>
|
|
<directory name="src" />
|
|
</projectFiles>
|
|
|
|
<issueHandlers>
|
|
<LessSpecificReturnType errorLevel="info" />
|
|
|
|
<!-- 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" />
|
|
<UntypedParam errorLevel="info" />
|
|
|
|
<!-- level 4 issues - points to possible deficiencies in logic, higher false-positives -->
|
|
|
|
<MoreSpecificReturnType errorLevel="info" />
|
|
<TypeCoercion errorLevel="info" />
|
|
<RedundantCondition errorLevel="info" />
|
|
|
|
<PossiblyFalseArgument errorLevel="info" />
|
|
<PossiblyFalsePropertyAssignmentValue errorLevel="info" />
|
|
<PossiblyFalseReference errorLevel="info" />
|
|
<PossiblyInvalidArgument errorLevel="info" />
|
|
<PossiblyInvalidArrayAccess errorLevel="info" />
|
|
<PossiblyInvalidArrayAssignment errorLevel="info" />
|
|
<PossiblyInvalidMethodCall 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" />
|
|
<PossiblyUndefinedGlobalVariable errorLevel="info" />
|
|
<PossiblyUndefinedVariable errorLevel="info" />
|
|
<PossiblyUndefinedMethod errorLevel="info" />
|
|
|
|
</issueHandlers>
|
|
</psalm>
|