mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-10 20:43:22 +02:00
40 lines
1.8 KiB
Plaintext
40 lines
1.8 KiB
Plaintext
parameters:
|
|
tmpDir: build/phpstan
|
|
level: 6
|
|
paths:
|
|
- app
|
|
- tests
|
|
bootstrapFiles:
|
|
- vendor/codeigniter4/codeigniter4/system/Test/bootstrap.php
|
|
scanDirectories:
|
|
- app/Helpers
|
|
- modules/Analytics/Helpers
|
|
- modules/Fediverse/Helpers
|
|
- vendor/codeigniter4/codeigniter4/system/Helpers
|
|
- vendor/myth/auth/src/Helpers
|
|
excludes_analyse:
|
|
- app/Libraries/Router.php
|
|
- app/Views/*
|
|
- modules/*/Views/*
|
|
- themes/*
|
|
ignoreErrors:
|
|
- '#This property type might be inlined to PHP. Do you have confidence it is correct\? Put it here#'
|
|
- '#^Cognitive complexity for#'
|
|
- '#^Class cognitive complexity#'
|
|
- '#Do not use chained method calls. Put each on separated lines.#'
|
|
- '#Do not inherit from abstract class, better use composition#'
|
|
- '#Cannot access property [\$a-z_]+ on ((array\|)?object)#'
|
|
- '#^Call to an undefined method CodeIgniter\\Database\\BaseBuilder#'
|
|
- '#^Call to an undefined method CodeIgniter\\Database\\ConnectionInterface#'
|
|
- '#Function \"preg_.*\(\)\" cannot be used/left in the code#'
|
|
- '#Function "property_exists\(\)" cannot be used/left in the code#'
|
|
- '#Instead of "instanceof/is_a\(\)" use ReflectionProvider service or "\(new ObjectType\(<desired_type\>\)\)\-\>isSuperTypeOf\(<element_type\>\)" for static reflection to work#'
|
|
- '#^Access to an undefined property App\\Entities\\Media\\Image#'
|
|
- '#^Access to an undefined property CodeIgniter\\Database\\BaseBuilder#'
|
|
-
|
|
message: '#Function "function_exists\(\)" cannot be used/left in the code#'
|
|
paths:
|
|
- app/Helpers
|
|
- app/Common.php
|
|
- app/Libraries/ViewComponents/Helpers
|