Remove the phpcpd dependency and all related functionality from code #194
Annotations
10 errors and 12 warnings
Run tests:
src/CodeAnalysisTasks.php#L116
src/CodeAnalysisTasks.php:116:17: PossiblyUndefinedArrayOffset: Possibly undefined array key $cliOptions[$option] on array{analyzedDirs?: mixed, buildDir?: mixed, execution?: mixed, ignoredDirs?: mixed, ignoredFiles?: mixed, output?: mixed, report?: mixed, tools?: mixed, verbose?: mixed, ...<array-key, mixed>} (see https://psalm.dev/167)
|
Run tests:
src/Options.php#L72
src/Options.php:72:44: PossiblyInvalidArgument: Argument 2 of explode expects string, but possibly different type array<array-key, string>|mixed|string provided (see https://psalm.dev/092)
|
Run tests:
src/RunningTool.php#L137
src/RunningTool.php:137:38: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
|
Run tests:
src/Tools/Analyzer/PhpMetricsV2.php#L37
src/Tools/Analyzer/PhpMetricsV2.php:37:48: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
|
Run tests:
src/Tools/Analyzer/Psalm.php#L58
src/Tools/Analyzer/Psalm.php:58:14: TypeDoesNotContainType: Cannot resolve types for $xml->projectFiles with type SimpleXMLElement and !isset assertion (see https://psalm.dev/056)
|
Run tests:
src/Tools/Analyzer/Psalm.php#L61
src/Tools/Analyzer/Psalm.php:61:14: TypeDoesNotContainType: Cannot resolve types for $xml->projectFiles->ignoreFiles with type SimpleXMLElement and !isset assertion (see https://psalm.dev/056)
|
Run tests:
src/Tools/Analyzer/Psalm.php#L68
src/Tools/Analyzer/Psalm.php:68:19: PossiblyNullReference: Cannot call method addAttribute on possibly null value (see https://psalm.dev/083)
|
Run tests:
src/Tools/Analyzer/Psalm.php#L75
src/Tools/Analyzer/Psalm.php:75:23: PossiblyNullReference: Cannot call method addAttribute on possibly null value (see https://psalm.dev/083)
|
Run tests:
src/Tools/GetVersions.php#L178
src/Tools/GetVersions.php:178:48: PossiblyInvalidCast: array<array-key, string> cannot be cast to string (see https://psalm.dev/190)
|
Run tests:
src/Tools/GetVersions.php#L178
src/Tools/GetVersions.php:178:48: PossiblyInvalidArgument: Argument 1 of version_compare expects string, but possibly different type array<array-key, string>|string provided (see https://psalm.dev/092)
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, actions/upload-artifact@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Run tests:
RoboFile.php#L5
RoboFile.php:5:7: DeprecatedInterface: Robo\Contract\OutputAwareInterface is marked deprecated (see https://psalm.dev/152)
|
Run tests:
RoboFile.php#L5
RoboFile.php:5:7: UnusedClass: Class Edge\QA\RoboFile is never used (see https://psalm.dev/075)
|
Run tests:
src/CodeAnalysisTasks.php#L10
src/CodeAnalysisTasks.php:10:13: MissingConstructor: Edge\QA\RoboFile has an uninitialized property Edge\QA\CodeAnalysisTasks::$tools, but no constructor (see https://psalm.dev/073)
|
Run tests:
src/CodeAnalysisTasks.php#L12
src/CodeAnalysisTasks.php:12:13: MissingConstructor: Edge\QA\RoboFile has an uninitialized property Edge\QA\CodeAnalysisTasks::$options, but no constructor (see https://psalm.dev/073)
|
Run tests:
src/CodeAnalysisTasks.php#L18
src/CodeAnalysisTasks.php:18:21: MissingReturnType: Method Edge\QA\CodeAnalysisTasks::tools does not have a return type, expecting void (see https://psalm.dev/050)
|
Run tests:
src/CodeAnalysisTasks.php#L19
src/CodeAnalysisTasks.php:19:9: MissingParamType: Parameter $opts has no provided type (see https://psalm.dev/154)
|
Run tests:
src/CodeAnalysisTasks.php#L24
src/CodeAnalysisTasks.php:24:51: DeprecatedMethod: The method Robo\Common\OutputAwareTrait::getOutput has been marked as deprecated (see https://psalm.dev/001)
|
Run tests:
src/CodeAnalysisTasks.php#L41
src/CodeAnalysisTasks.php:41:21: MissingReturnType: Method Edge\QA\CodeAnalysisTasks::ci does not have a return type (see https://psalm.dev/050)
|
Run tests:
src/CodeAnalysisTasks.php#L42
src/CodeAnalysisTasks.php:42:9: MissingParamType: Parameter $opts has no provided type (see https://psalm.dev/154)
|
Run tests:
src/CodeAnalysisTasks.php#L65
src/CodeAnalysisTasks.php:65:22: MissingReturnType: Method Edge\QA\CodeAnalysisTasks::normalizeCliOptions does not have a return type, expecting array{report: bool|non-empty-mixed, ...<array-key, mixed>} (see https://psalm.dev/050)
|
The logs for this run have expired and are no longer available.
Loading