2019-08-25 11:41:41 +08:00
|
|
|
# Magic behaviour with __get, __set, __call and __callStatic is not exactly static analyser-friendly :)
|
2020-08-06 08:50:08 +08:00
|
|
|
# Fortunately, You can ignore it by the following config.
|
2019-08-25 11:41:41 +08:00
|
|
|
#
|
2020-05-13 11:57:02 +08:00
|
|
|
|
|
|
|
parameters:
|
2020-06-17 14:45:13 +08:00
|
|
|
bootstrapFiles:
|
|
|
|
- "bootstrap.php"
|
2020-05-13 11:57:02 +08:00
|
|
|
inferPrivatePropertyTypeFromConstructor: true
|
|
|
|
treatPhpDocTypesAsCertain: true
|
2020-05-13 12:18:12 +08:00
|
|
|
reportUnmatchedIgnoredErrors: false
|
2021-11-02 09:18:02 +08:00
|
|
|
excludePaths:
|
2020-05-13 11:57:02 +08:00
|
|
|
- %currentWorkingDirectory%/src/*/tests/*
|
2020-05-29 09:47:22 +08:00
|
|
|
- %currentWorkingDirectory%/src/*/publish/*
|
2021-11-19 09:40:33 +08:00
|
|
|
- %currentWorkingDirectory%/src/*/class_map/*
|
2020-05-29 09:47:22 +08:00
|
|
|
- %currentWorkingDirectory%/src/di/src/Resolver/FactoryResolver.php
|
2021-06-24 11:23:29 +08:00
|
|
|
- %currentWorkingDirectory%/src/config-zookeeper/src/Client.php
|
2020-06-01 14:01:52 +08:00
|
|
|
- %currentWorkingDirectory%/src/contract/*
|
|
|
|
- %currentWorkingDirectory%/src/crontab/*
|
|
|
|
- %currentWorkingDirectory%/src/database/*
|
2021-07-06 23:28:01 +08:00
|
|
|
- %currentWorkingDirectory%/src/filesystem/*
|
2020-06-01 14:01:52 +08:00
|
|
|
- %currentWorkingDirectory%/src/graphql/*
|
|
|
|
- %currentWorkingDirectory%/src/grpc/*
|
|
|
|
- %currentWorkingDirectory%/src/grpc-server/*
|
2021-06-20 10:18:28 +08:00
|
|
|
- %currentWorkingDirectory%/src/ide-helper/*
|
2020-06-01 14:01:52 +08:00
|
|
|
- %currentWorkingDirectory%/src/swagger/*
|
|
|
|
- %currentWorkingDirectory%/src/validation/*
|
2020-10-10 20:13:55 +08:00
|
|
|
- %currentWorkingDirectory%/src/view/src/Engine/*
|
2020-10-15 11:31:31 +08:00
|
|
|
- %currentWorkingDirectory%/src/server/src/SwowServer.php
|
2022-05-17 10:17:04 +08:00
|
|
|
- %currentWorkingDirectory%/src/amqp/src/IO/SwowIO.php
|
2020-05-13 11:57:02 +08:00
|
|
|
ignoreErrors:
|
2020-05-13 12:18:12 +08:00
|
|
|
- '#side of && is always#'
|
|
|
|
- '#method Redis::zRevRangeByScore\(\) expects int, string given#'
|
|
|
|
- '#Argument of an invalid type Hyperf\\AsyncQueue\\Job supplied for foreach, only iterables are supported#'
|
2020-05-25 14:47:56 +08:00
|
|
|
- '#Variable .* in isset\(\) always exists and is not nullable#'
|
2020-05-29 09:47:22 +08:00
|
|
|
- '#Static call to instance method Hyperf\\DbConnection\\Db.*#'
|
|
|
|
- '#Static call to instance method SplPriorityQueue\:\:insert\(\)#'
|
|
|
|
- '#Call to an undefined method ReflectionType::getName#'
|
2020-05-29 16:29:34 +08:00
|
|
|
- '#Call to an undefined method Traversable<mixed, mixed>\:\:getArrayCopy#'
|
2020-05-30 16:43:36 +08:00
|
|
|
- '#Unsafe usage of new static#'
|
|
|
|
- '#Method Hyperf\\Contract\\Sendable::send#'
|
|
|
|
- '#Variable .* in PHPDoc tag @var does not exist#'
|
2020-09-04 10:36:02 +08:00
|
|
|
- '#Call to an undefined method Hyperf\\Database\\Model\\Model::hydrate#'
|
2020-06-01 14:01:52 +08:00
|
|
|
- '#PHPDoc tag @param has invalid value#'
|
|
|
|
- '#Static call to instance method Hyperf\\RpcServer\\Router\\Router::#'
|
|
|
|
- '#Method Hyperf\\Utils\\Serializer\\ScalarNormalizer::denormalize\(\) should return array\|object but returns#'
|
2020-06-17 14:45:13 +08:00
|
|
|
- '#Function get_debug_type invoked with 1 parameter, 0 required#'
|
2020-08-07 13:33:45 +08:00
|
|
|
- '#Call to an undefined method Hyperf\\Utils\\HigherOrderCollectionProxy::.*#'
|
2020-10-10 19:51:09 +08:00
|
|
|
- '#InfluxDB\\Point constructor expects float\|null, string given#'
|
2021-01-25 10:17:05 +08:00
|
|
|
- '#getSwooleTracker.* not found#'
|
2020-10-21 15:31:02 +08:00
|
|
|
- '#trackerHookMalloc not found#'
|
2021-09-06 10:20:50 +08:00
|
|
|
- '#separator of function explode expects non-empty-string, string given#'
|
2021-11-02 09:18:02 +08:00
|
|
|
- '#While loop condition is always true#'
|
|
|
|
- '#Unsafe access to private property .* through static::#'
|
|
|
|
- '#Unsafe call to private method .* through static::#'
|
|
|
|
- '#Property .* is never read, only written#'
|
2021-11-02 15:06:17 +08:00
|
|
|
- message: '#Match arm is unreachable because previous comparison is always true#'
|
|
|
|
path: src/amqp/src/IO/IOFactory.php
|
2021-12-06 09:44:39 +08:00
|
|
|
- '#.*TKey.*TValue#'
|
2022-04-07 10:26:59 +08:00
|
|
|
- '#Method Hyperf\\Utils\\Serializer\\Serializer::normalize\(\) should return array\|ArrayObject\|bool\|float\|int\|string\|null#'
|
2022-03-30 13:21:10 +08:00
|
|
|
- '#Class RedisSentinel constructor invoked with .*#'
|
2022-06-23 17:19:07 +08:00
|
|
|
- '#Hyperf\\Engine\\Http\\Server#'
|
2022-07-13 20:46:57 +08:00
|
|
|
- '#Swow\\Socket#'
|