RiktaD/timed-loop

View on GitHub
chore(release): 1.0.1 #49
github-actions[bot] authored b9bd1f0c
complete00:00:29
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.json.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-git-legal:b626
b626: Pulling from codeclimate/codeclimate-git-legal
90f4dba627d6: Already exists
98c1a7514ba6: Pulling fs layer
e970acb20b34: Pulling fs layer
37b763b54c24: Pulling fs layer
fda57ec1751e: Pulling fs layer
4c6564efa402: Pulling fs layer
d9d2999a61cb: Pulling fs layer
580a7c85932d: Pulling fs layer
14042ef0ceb7: Pulling fs layer
a176c29021cd: Pulling fs layer
fb61bdd6c9e5: Pulling fs layer
5902f4e6bfdf: Pulling fs layer
01d61cd90194: Pulling fs layer
bfd3418a31a7: Pulling fs layer
4c6564efa402: Waiting
d9d2999a61cb: Waiting
01d61cd90194: Waiting
fb61bdd6c9e5: Waiting
580a7c85932d: Waiting
bfd3418a31a7: Waiting
5902f4e6bfdf: Waiting
a176c29021cd: Waiting
14042ef0ceb7: Waiting
fda57ec1751e: Waiting
98c1a7514ba6: Verifying Checksum
98c1a7514ba6: Download complete
37b763b54c24: Download complete
98c1a7514ba6: Pull complete
fda57ec1751e: Verifying Checksum
fda57ec1751e: Download complete
e970acb20b34: Verifying Checksum
e970acb20b34: Download complete
4c6564efa402: Verifying Checksum
4c6564efa402: Download complete
d9d2999a61cb: Verifying Checksum
d9d2999a61cb: Download complete
580a7c85932d: Verifying Checksum
580a7c85932d: Download complete
14042ef0ceb7: Verifying Checksum
14042ef0ceb7: Download complete
fb61bdd6c9e5: Verifying Checksum
fb61bdd6c9e5: Download complete
01d61cd90194: Verifying Checksum
bfd3418a31a7: Verifying Checksum
bfd3418a31a7: Download complete
e970acb20b34: Pull complete
37b763b54c24: Pull complete
fda57ec1751e: Pull complete
4c6564efa402: Pull complete
5902f4e6bfdf: Verifying Checksum
5902f4e6bfdf: Download complete
d9d2999a61cb: Pull complete
580a7c85932d: Pull complete
14042ef0ceb7: Pull complete
a176c29021cd: Verifying Checksum
a176c29021cd: Download complete
a176c29021cd: Pull complete
fb61bdd6c9e5: Pull complete
5902f4e6bfdf: Pull complete
01d61cd90194: Pull complete
bfd3418a31a7: Pull complete
Digest: sha256:61138dd4b61200e7b5250841c2bccf3128018ff186d011cb1ee6041f41403c4d
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-git-legal:b626
docker pull codeclimate/codeclimate-phpmd:b291
b291: Pulling from codeclimate/codeclimate-phpmd
41dcc117e123: Pulling fs layer
e7cb8c1bd7da: Pulling fs layer
382dd9e936d2: Pulling fs layer
01d3fd4ccf07: Pulling fs layer
d54cbc0233c4: Pulling fs layer
a01b3d804127: Pulling fs layer
02aaff91dfc2: Pulling fs layer
25d9a4b72163: Pulling fs layer
378b764b6ee5: Pulling fs layer
01d3fd4ccf07: Waiting
d8ae1ee899c7: Pulling fs layer
d54cbc0233c4: Waiting
f11257bedacf: Pulling fs layer
40adf26d4529: Pulling fs layer
a01b3d804127: Waiting
02aaff91dfc2: Waiting
25d9a4b72163: Waiting
f11257bedacf: Waiting
378b764b6ee5: Waiting
40adf26d4529: Waiting
d8ae1ee899c7: Waiting
e7cb8c1bd7da: Verifying Checksum
e7cb8c1bd7da: Download complete
382dd9e936d2: Verifying Checksum
382dd9e936d2: Download complete
41dcc117e123: Verifying Checksum
41dcc117e123: Download complete
d54cbc0233c4: Download complete
41dcc117e123: Pull complete
a01b3d804127: Download complete
01d3fd4ccf07: Download complete
e7cb8c1bd7da: Pull complete
02aaff91dfc2: Download complete
382dd9e936d2: Pull complete
25d9a4b72163: Verifying Checksum
25d9a4b72163: Download complete
378b764b6ee5: Download complete
d8ae1ee899c7: Download complete
01d3fd4ccf07: Pull complete
f11257bedacf: Download complete
d54cbc0233c4: Pull complete
a01b3d804127: Pull complete
02aaff91dfc2: Pull complete
25d9a4b72163: Pull complete
378b764b6ee5: Pull complete
d8ae1ee899c7: Pull complete
f11257bedacf: Pull complete
40adf26d4529: Pull complete
Digest: sha256:100ad83154de1d7143edb4360753a5a3c2c35f8a0fd8f00352718003e2b63bfa
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-phpmd:b291
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
cfbd8af1af7a: Waiting
ea3b98fb78f4: Waiting
e109c25d106c: Waiting
1c654bf89a09: Waiting
b2fb00c172a9: Waiting
1519b1438731: Waiting
a42e650909d2: Download complete
97518928ae5f: Verifying Checksum
e109c25d106c: Verifying Checksum
e109c25d106c: Download complete
97518928ae5f: Pull complete
b2fb00c172a9: Verifying Checksum
b2fb00c172a9: Download complete
0dff3d7a1a0e: Verifying Checksum
043df9f67e9a: Download complete
cfbd8af1af7a: Download complete
1519b1438731: Verifying Checksum
1519b1438731: Download complete
ea3b98fb78f4: Verifying Checksum
ea3b98fb78f4: Download complete
1c654bf89a09: Verifying Checksum
1c654bf89a09: Download complete
043df9f67e9a: Pull complete
a42e650909d2: Pull complete
0dff3d7a1a0e: Pull complete
e109c25d106c: Pull complete
b2fb00c172a9: Pull 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
fixme
fixme engine documentation
8
git-legal
git-legal 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: 11 files indexed
INFO: 3 source files to be analyzed
ERROR: Unable to parse file: /code/.php-cs-fixer.dist.php
ERROR: Parse error at line 157 column 1:

147:         'self_static_accessor' => true,
148:         'simplified_if_return' => true,
149:         'simplified_null_return' => true,
150:         'static_lambda' => true,
151:         'trailing_comma_in_multiline' => ['elements' => ['arguments', 'arrays']],
152:         'yoda_style' => [
153:             'always_move_variable' => true,
154:             'less_and_greater' => true,
155:         ],
156:     ],
157: )
     ^
158: ;
159: 

ERROR: Unable to parse file: /code/src/TimedLoop.php
ERROR: Parse error at line 13 column 13:

 3: declare(strict_types=1);
 4: 
 5: namespace Rikta\TimedLoop;
 6: 
 7: class TimedLoop
 8: {
 9:     /** function that shall be looped */
10:     private $callable;
11: 
12:     /** value that must be returned by the looped method to keep the loop going */
13:     private bool $continueReturn = false;
                ^
14: 
15:     /** maximum amount of seconds to run until an exception shall be thrown */
16:     private float $maxSeconds = 10.0;
17: 
18:     /** microseconds between end of a call and a new try */
19:     private int $retryAfterMicroseconds = 5_0000;
20: 
21:     /** shall an exception be thrown when the timeout is reached? */
22:     private bool $throwsException = true;
23: 

ERROR: Unable to parse file: /code/src/LoopTimeoutException.php
ERROR: Parse error at line 21 column 9:

11:  */
12: final class LoopTimeoutException extends RuntimeException
13: {
14:     public function __construct(float $secondsPassed, float $secondsLimit, $continueValue)
15:     {
16:         parent::__construct(sprintf(
17:             'Loop timed out after %01.3f seconds (limit: %01.3f seconds) not returning %s',
18:             $secondsPassed,
19:             $secondsLimit,
20:             var_export($continueValue, true),
21:         ));
            ^
22:     }
23: }
24: 

INFO: 3/3 source files have been analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.251s
INFO: Final Memory: 10M/56M
INFO: ------------------------------------------------------------------------