Skip to content

Commit

Permalink
add class cognitive sniff
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Mar 16, 2020
1 parent c471f27 commit cde7911
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ecs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ parameters:
- "tests/Fixtures/Entity/SluggableWithoutRegenerateEntity.php"

services:
Symplify\CodingStandard\Sniffs\CleanCode\ClassCognitiveComplexitySniff:
max_class_cognitive_complexity: 20

Symplify\CodingStandard\Sniffs\CleanCode\CognitiveComplexitySniff:
max_cognitive_complexity: 8

Expand Down
1 change: 0 additions & 1 deletion tests/ORM/TreeNodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Knp\DoctrineBehaviors\Tests\AbstractBehaviorTestCase;
use Knp\DoctrineBehaviors\Tests\Fixtures\Entity\TreeNodeEntity;
use Knp\DoctrineBehaviors\Tests\Fixtures\Repository\TreeNodeRepository;
use LogicException;
use Nette\Utils\Json;

final class TreeNodeTest extends AbstractBehaviorTestCase
Expand Down

0 comments on commit cde7911

Please sign in to comment.