charonlab/static-analysis

Static analysis utilities for charon packages.

1.1.0 2024-03-24 09:54 UTC

This package is auto-updated.

Last update: 2024-11-24 11:23:19 UTC


README

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.