You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's yelling: Service (Symplify\CodingStandard\CognitiveComplexity\Rules\FunctionLikeCognitiveComplexityRule::__construct()): Class 'Symplify\CodingStandard\CognitiveComplexity\Rules\FunctionLikeCognitiveComplexityRule' not found.
But seems they don't exist anymore and this might be the reason. New package is needed.
Activity
#72 Add back ecs package to composer.json.
hkirsman commentedon May 26, 2023
Probably this is needed:
Or at least let's start from latest 11.3.
Then we also need to change that requirement here:
https://github.com/wunderio/ecs-drupal/blob/master/composer.json
Related issue at wunderio/ecs-drupal#2
#72 Test out wunderio/ecs-drupal update.
#72 Test out wunderio/ecs-drupal update vol 2.
hkirsman commentedon May 27, 2023
Cognitive complexity used to need these lines
It's yelling:
Service (Symplify\CodingStandard\CognitiveComplexity\Rules\FunctionLikeCognitiveComplexityRule::__construct()): Class 'Symplify\CodingStandard\CognitiveComplexity\Rules\FunctionLikeCognitiveComplexityRule' not found.But seems they don't exist anymore and this might be the reason. New package is needed.
https://github.com/symplify/symplify/pull/4515
hkirsman commentedon May 27, 2023
It might be even as simple as this to add back the cognitive complexity:
https://github.com/TomasVotruba/cognitive-complexity
hkirsman commentedon May 27, 2023
Seems to work great:

#72 Add tomasvotruba/cognitive-complexity.
#72 Add tomasvotruba/cognitive-complexity.
#72 Fix code complexity in Psalm Drupal autoloader.
#72 Fix code complexity in Psalm Drupal autoloader.
#72 Fix code complexity in Psalm Drupal autoloader.
#72 Fix code complexity in Psalm Drupal autoloader.
#72 Update class comment in DrupalAutoloaderBase.php.
#72 Try and fix signal 9 error.
#72 Change function cognitive complexity (see reasons in PR).
WD-257 Update ecs task to be used with Grumphp 2.5
Merge pull request #95 from wunderio/feature/72-Re-add-code-complexity