zadorin / bitrix-psalm-plugin
Psalm plugin for Bitrix Framework
Installs: 1 506
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 0
Open Issues: 2
Type:psalm-plugin
Requires
- vimeo/psalm: ^4.19
Requires (Dev)
- phpunit/phpunit: ^7.2
- squizlabs/php_codesniffer: ^3.3
This package is auto-updated.
Last update: 2024-10-29 06:19:04 UTC
README
Very first prototype
Install
composer require zadorin/bitrix-psalm-plugin --dev
./vendor/bin/psalm-plugin enable zadorin/bitrix-psalm-plugin
Configure
Options psalm.autoloader
and bitrixDir
are important.
<!-- <project-dir>/bitrix/psalm.xml --> <?xml version="1.0"?> <psalm autoloader="vendor/zadorin/bitrix-psalm-plugin/autoload.php" errorLevel="1" resolveFromConfigFile="true" 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="modules/crm/lib" /> </projectFiles> <issueHandlers> <InvalidGlobal errorLevel="suppress" /> </issueHandlers> <plugins> <pluginClass class="\Zadorin\BitrixPsalmPlugin\Plugin"> <bitrixDir>.</bitrixDir> <includeModules> <module name="crm" /> <module name="sale" /> </includeModules> <ignoreModules> <module name="currency" /> </ignoreModules> </pluginClass> </plugins> </psalm>
Execute
./vendor/bin/psalm --memory-limit=4G