Skip to content

Commit

Permalink
Added psalm.xml configuration file to check the happy-path static s…
Browse files Browse the repository at this point in the history
…cenarios

This is a temporary file location, since the project has its own conventions
  • Loading branch information
Ocramius authored and sebastianbergmann committed Jun 6, 2019
1 parent d60e14d commit 41f7556
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions psalm.xml
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>

0 comments on commit 41f7556

Please sign in to comment.