Compolomus/FSHelper

View on GitHub
Merge pull request #3 from Compolomus/dev #57
Дмитрий authored a851a041
complete00:00:16
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
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
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: 14 files indexed
INFO: 5 source files to be analyzed
ERROR: Unable to parse file: /code/src/PathFixer.php
ERROR: Parse error at line 14 column 13:

 4: 
 5: namespace Compolomus\FSHelper;
 6: 
 7: use Compolomus\FSHelper\Exceptions\PathNotFoundException;
 8: 
 9: class PathFixer
10: {
11:     /**
12:      * Absolute or relative path
13:      */
14:     private string $path;
                ^
15: 
16:     /**
17:      * Amount of symbols which can be removed from provided path
18:      */
19:     private int $trimLength;
20: 
21:     /**
22:      * PathFixer constructor.
23:      * @throws PathNotFoundException
24:      */

ERROR: Unable to parse file: /code/src/FSHelper.php
ERROR: Parse error at line 49 column 56:

39:     /**
40:      * Return objects of all directories by provided path
41:      *
42:      * @param string $directoryPath Absolute or relative path
43:      * @throws PathNotFoundException
44:      */
45:     public static function getDirectories(string $directoryPath): CallbackFilterIterator
46:     {
47:         $all = self::getAll($directoryPath);
48: 
49:         return new CallbackFilterIterator($all, static fn($iterator) => $iterator->isDir());
                                                           ^
50:     }
51: 
52:     /**
53:      * Return objects of all files by provided path
54:      *
55:      * @param string $directoryPath Absolute or relative path
56:      * @throws PathNotFoundException
57:      */
58:     public static function getFiles(string $directoryPath): CallbackFilterIterator
59:     {

INFO: 5/5 source files have been analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.467s
INFO: Final Memory: 10M/96M
INFO: ------------------------------------------------------------------------