kafkiansky / reduce-arguments
Psalm plugin that makes sure that you don't use too many arguments in functions and methods.
Installs: 4 812
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:psalm-plugin
Requires
- php: ^7.3 || ^8.0
- codeception/module-asserts: ^1.0.0
- codeception/module-phpbrowser: ^1.0.0
- vimeo/psalm: ^4.3.0
Requires (Dev)
- phpunit/phpunit: ^8.0
- weirdan/codeception-psalm-module: ^0.13.1
This package is auto-updated.
Last update: 2024-10-07 17:19:21 UTC
README
Contents:
Installation
Install this package with Composer:
composer require kafkiansky/reduce-arguments --dev
Configuration
If you want to use your own threshold, set the argumentsCountThreshold
global variable in psalm.xml
configuration:
... <globals> <var name="argumentsCountThreshold" type="6" /> </globals> ...
By default, plugin use 5 as threshold.
Testing
$ composer test
License
The MIT License (MIT). See License File for more information.