Skip to content

Commit ab6b5dd

Browse files
committed
#72 Add tomasvotruba/cognitive-complexity.
1 parent ada3510 commit ab6b5dd

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"phpstan/phpstan-deprecation-rules": "^1.0",
4848
"vimeo/psalm": "^4",
4949
"nette/finder": "^2.5",
50-
"symfony/finder": "^4.4 || ^5.3 || ^6"
50+
"symfony/finder": "^4.4 || ^5.3 || ^6",
51+
"tomasvotruba/cognitive-complexity": "^0.1.1"
5152
},
5253
"autoload": {
5354
"psr-4": {

config/phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ parameters:
77
- '#Plugin definitions cannot be altered.#'
88
- '#Missing cache backend declaration for performance.#'
99
- '#Plugin manager has cache backend specified but does not declare cache tags.#'
10+
cognitive_complexity:
11+
class: 50
12+
function: 16

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ parameters:
77
- '#Plugin definitions cannot be altered.#'
88
- '#Missing cache backend declaration for performance.#'
99
- '#Plugin manager has cache backend specified but does not declare cache tags.#'
10+
cognitive_complexity:
11+
class: 50
12+
function: 16

0 commit comments

Comments
 (0)