-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added
psalm.xml
configuration file to check the happy-path static s…
…cenarios This is a temporary file location, since the project has its own conventions
- Loading branch information
1 parent
d60e14d
commit 41f7556
Showing
1 changed file
with
53 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
totallyTyped="false" | ||
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="tests/static-analysis/happy-path" /> | ||
<ignoreFiles> | ||
<directory name="vendor" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
|
||
<issueHandlers> | ||
<LessSpecificReturnType errorLevel="error" /> | ||
|
||
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives --> | ||
|
||
<DeprecatedMethod errorLevel="error" /> | ||
<DeprecatedProperty errorLevel="error" /> | ||
<DeprecatedClass errorLevel="error" /> | ||
<DeprecatedConstant errorLevel="error" /> | ||
<DeprecatedInterface errorLevel="error" /> | ||
<DeprecatedTrait errorLevel="error" /> | ||
|
||
<InternalMethod errorLevel="error" /> | ||
<InternalProperty errorLevel="error" /> | ||
<InternalClass errorLevel="error" /> | ||
|
||
<MissingClosureReturnType errorLevel="error" /> | ||
<MissingReturnType errorLevel="error" /> | ||
<MissingPropertyType errorLevel="error" /> | ||
<InvalidDocblock errorLevel="error" /> | ||
<MisplacedRequiredParam errorLevel="error" /> | ||
|
||
<PropertyNotSetInConstructor errorLevel="error" /> | ||
<MissingConstructor errorLevel="error" /> | ||
<MissingClosureParamType errorLevel="error" /> | ||
<MissingParamType errorLevel="error" /> | ||
|
||
<RedundantCondition errorLevel="error" /> | ||
|
||
<DocblockTypeContradiction errorLevel="error" /> | ||
<RedundantConditionGivenDocblockType errorLevel="error" /> | ||
|
||
<UnresolvableInclude errorLevel="error" /> | ||
|
||
<RawObjectIteration errorLevel="error" /> | ||
|
||
<InvalidStringClass errorLevel="error" /> | ||
</issueHandlers> | ||
</psalm> |