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

v1.0.0 2021-03-07 09:22 UTC

This package is auto-updated.

Last update: 2024-10-07 17:19:21 UTC


README

test Software License Quality Score StyleCI Total Downloads Latest Stable Version

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.