Registry / testing / tomasvotruba-cognitive-complexity

tomasvotruba-cognitive-complexity

JSON →
library1.0.0phppackagistunverified

PHPStan rules to measure cognitive complexity of your classes and methods

composer require tomasvotruba/cognitive-complexity
INSTALL
IMPORT
SIG · TOMASVOTRUBA-COGNI
T
tomasvotruba-cognitive-complexity
testingphpv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CognitiveComplexityRule
✓ use TomasVotruba\CognitiveComplexity\Rules\CognitiveComplexityRule;

Register the cognitive complexity rule in PHPStan

use TomasVotruba\CognitiveComplexity\Rules\CognitiveComplexityRule; // Register rule in PHPStan config
Debug
Known issues
gotchaRequires PHPStan to be installed and configured
fix
Install phpstan/phpstan and add the rule to your phpstan.neon
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Resources
tomasvotruba-cognitive-complexity — pip install tomasvotruba-cognitive-complexity · libregistry