Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.63 KB

README.md

File metadata and controls

53 lines (40 loc) · 1.63 KB

charonlab/static-analysis

PHP Version Require Latest Stable Version Total Downloads License

Installation

Use the composer to install:

composer require --dev charonlab/static-analysis

Usage

Psalm

Create a psalm.xml file, below is a sample configuration.

<?xml version="1.0"?>
<psalm xmlns="https://getpsalm.org/schema/config"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
       errorLevel="2"
       hoistConstants="true"
       findUnusedPsalmSuppress="true"
       findUnusedVariablesAndParams="true"
       ensureArrayStringOffsetsExist="true"
       addParamDefaultToDocblockType="true"
       findUnusedBaselineEntry="true"
       findUnusedCode="false"
>
    <projectFiles>
        <directory name="src"/>
        <ignoreFiles>
            <directory name=".github"/>
            <directory name="vendor"/>
        </ignoreFiles>
    </projectFiles>
</psalm>

Support

License

The MIT License (MIT). Please see License for more information.