k911/swoole-bundle

View on GitHub
feat(http-kernel): remove debug http request handler (#516) #1412
Konrad Obal authored da33c811
complete00:00:25
Your first build completed successfully!

Congratulations

Your first build completed successfully!

See the Results

1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-sonar-php:b23
b23: Pulling from codeclimate/codeclimate-sonar-php
97518928ae5f: Pulling fs layer
043df9f67e9a: Pulling fs layer
a42e650909d2: Pulling fs layer
0dff3d7a1a0e: Pulling fs layer
e109c25d106c: Pulling fs layer
b2fb00c172a9: Pulling fs layer
1519b1438731: Pulling fs layer
cfbd8af1af7a: Pulling fs layer
ea3b98fb78f4: Pulling fs layer
1c654bf89a09: Pulling fs layer
0dff3d7a1a0e: Waiting
e109c25d106c: Waiting
cfbd8af1af7a: Waiting
ea3b98fb78f4: Waiting
b2fb00c172a9: Waiting
1c654bf89a09: Waiting
1519b1438731: Waiting
a42e650909d2: Verifying Checksum
a42e650909d2: Download complete
97518928ae5f: Verifying Checksum
97518928ae5f: Download complete
e109c25d106c: Download complete
97518928ae5f: Pull complete
b2fb00c172a9: Download complete
043df9f67e9a: Verifying Checksum
043df9f67e9a: Download complete
cfbd8af1af7a: Download complete
0dff3d7a1a0e: Verifying Checksum
0dff3d7a1a0e: Download complete
1519b1438731: Verifying Checksum
1519b1438731: Download complete
043df9f67e9a: Pull complete
a42e650909d2: Pull complete
ea3b98fb78f4: Verifying Checksum
ea3b98fb78f4: Download complete
0dff3d7a1a0e: Pull complete
e109c25d106c: Pull complete
b2fb00c172a9: Pull complete
1c654bf89a09: Verifying Checksum
1c654bf89a09: Download complete
1519b1438731: Pull complete
cfbd8af1af7a: Pull complete
ea3b98fb78f4: Pull complete
1c654bf89a09: Pull complete
Digest: sha256:600639355d67f629857951762cd4d8d2bc9eb16a0496c67a3d6049830edcc87b
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-sonar-php:b23
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
7
shellcheck
shellcheck engine documentation
8
phpcodesniffer
phpcodesniffer engine documentation
9
phpmd
phpmd engine documentation
10
sonar-php
sonar-php engine documentation
View output
INFO: Java 1.8.0_322 Amazon.com Inc. (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: 140 files indexed
INFO: 112 source files to be analyzed
ERROR: Unable to parse file: /code/src/Server/Runtime/CallableBootManagerFactory.php
ERROR: Parse error at line 29 column 45:

19:             return $result;
20:         };
21: 
22:         return new CallableBootManager(
23:             (new GeneratedCollection($bootableCollection, ...$bootables))
24:                 ->filter(function ($bootable) use ($isAlreadyRegistered): bool {
25:                     Assertion::isInstanceOf($bootable, BootableInterface::class);
26: 
27:                     return $isAlreadyRegistered(\spl_object_id($bootable));
28:                 })
29:                 ->map(fn (BootableInterface $bootable): callable => [$bootable, 'boot'])
                                                ^
30:         );
31:     }
32: }
33: 

ERROR: Unable to parse file: /code/src/Server/Api/ApiServerRequestHandler.php
ERROR: Parse error at line 28 column 83:

18:         Http::METHOD_POST,
19:         Http::METHOD_PATCH,
20:         Http::METHOD_DELETE,
21:     ];
22:     private $routes;
23: 
24:     public function __construct(ApiServerInterface $apiServer)
25:     {
26:         $this->routes = [
27:             '/healthz' => [
28:                 Http::METHOD_GET => $this->composeSimpleRouteDefinition(200, fn (): array => ['ok' => true]),
                                                                                      ^
29:             ],
30:             '/api' => [
31:                 Http::METHOD_GET => $this->composeSimpleRouteDefinition(200, [$this, 'getRouteMap']),
32:             ],
33:             '/api/server' => [
34:                 Http::METHOD_GET => $this->composeSimpleRouteDefinition(200, [$apiServer, 'status']),
35:                 Http::METHOD_PATCH => $this->composeSimpleRouteDefinition(204, [$apiServer, 'reload']),
36:                 Http::METHOD_DELETE => $this->composeSimpleRouteDefinition(204, [$apiServer, 'shutdown']),
37:             ],
38:             '/api/server/metrics' => [

ERROR: Unable to parse file: /code/src/Server/Session/SwooleTableStorage.php
ERROR: Parse error at line 39 column 9:

29: 
30:         $this->sharedMemory = $sharedMemory;
31:         $this->maxSessionDataBytes = $maxSessionDataBytes;
32:     }
33: 
34:     public static function fromDefaults(int $maxActiveSessions = 1024, int $maxSessionDataBytes = 1024, float $tableConflictProportion = 0.2): self
35:     {
36:         return new self(
37:             new Table($maxActiveSessions, $tableConflictProportion),
38:             $maxSessionDataBytes,
39:         );
            ^
40:     }
41: 
42:     /**
43:      * {@inheritdoc}
44:      *
45:      * @throws \Assert\AssertionFailedException
46:      */
47:     public function set(string $key, $data, int $ttl): void
48:     {
49:         Assertion::greaterThan($ttl, 0, 'Provided TTL "%d" is not a positive number.');

ERROR: Unable to parse file: /code/src/Component/ExceptionArrayTransformer.php
ERROR: Parse error at line 73 column 36:

63:             'trace' => \array_map(function (array $trace): array {
64:                 $trace['args'] = \array_key_exists('args', $trace) ? $this->transformTraceArgs($trace['args']) : null;
65: 
66:                 return $trace;
67:             }, $exception->getTrace()),
68:         ];
69:     }
70: 
71:     private function transformTraceArgs(array $args): array
72:     {
73:         return \array_map(fn ($arg): string => \is_object($arg) ? \get_class($arg) : \gettype($arg), $args);
                                       ^
74:     }
75: }
76: 

ERROR: Unable to parse file: /code/src/Bridge/Symfony/Bundle/Command/AbstractServerStartCommand.php
ERROR: Parse error at line 183 column 121:

173:     protected function prepareRuntimeConfiguration(HttpServerConfiguration $serverConfiguration, InputInterface $input): array
174:     {
175:         $trustedHosts = $input->getOption('trusted-hosts');
176:         $trustedProxies = $input->getOption('trusted-proxies');
177:         $runtimeConfiguration['trustedHosts'] = $this->decodeSet($trustedHosts);
178:         $runtimeConfiguration['trustedProxies'] = $this->decodeSet($trustedProxies);
179: 
180:         Assertion::isArray($runtimeConfiguration['trustedProxies']);
181:         if (\in_array('*', $runtimeConfiguration['trustedProxies'], true)) {
182:             $runtimeConfiguration['trustAllProxies'] = true;
183:             $runtimeConfiguration['trustedProxies'] = \array_filter($runtimeConfiguration['trustedProxies'], fn (string $trustedProxy): bool => '*' !== $trustedProxy);
                                                                                                                             ^
184:         }
185: 
186:         return $runtimeConfiguration;
187:     }
188: 
189:     /**
190:      * Rows produced by this function will be printed on server startup in table with following form:
191:      * | Configuration | Value |.
192:      *
193:      * @throws \Assert\AssertionFailedException

ERROR: Unable to parse file: /code/src/functions.php
ERROR: Parse error at line 34 column 38:

24: /**
25:  * Get object property (even by reference).
26:  * Property may not be public.
27:  *
28:  * @param null|string $scope class scope useful when property is inherited
29:  *
30:  * @return mixed
31:  */
32: function &get_object_property(object $obj, string $propertyName, ?string $scope = null)
33: {
34:     return Closure::bind(fn &(string $propertyName) => $this->$propertyName, $obj, $scope ?? $obj)($propertyName);
                                         ^
35: }
36: 
37: /**
38:  * @return int bytes
39:  */
40: function get_max_memory(): int
41: {
42:     /** @var string $memoryLimit */
43:     $memoryLimit = \ini_get('memory_limit');
44: 

INFO: 112/112 source files have been analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.936s
INFO: Final Memory: 13M/165M
INFO: ------------------------------------------------------------------------