feat: OCC and OCS Calendar Import/Export #53916
static-code-analysis.yml
on: pull_request
static-code-analysis
3m 36s
static-code-analysis-security
11m 22s
static-code-analysis-ocp
2m 11s
static-code-analysis-ncu
1m 23s
Annotations
18 errors
InvalidTemplateParam:
lib/public/AppFramework/Http/StreamGeneratorResponse.php#L20
lib/public/AppFramework/Http/StreamGeneratorResponse.php:20:7: InvalidTemplateParam: Extended template param S expects type OCP\AppFramework\Http::STATUS_*, type int given (see https://psalm.dev/183)
|
static-code-analysis-ocp
Process completed with exit code 2.
|
MoreSpecificReturnType:
apps/dav/lib/CalDAV/CalendarImpl.php#L277
apps/dav/lib/CalDAV/CalendarImpl.php:277:13: MoreSpecificReturnType: The declared return type 'Generator<mixed, Sabre\VObject\Component\VCalendar, mixed, mixed>' for OCA\DAV\CalDAV\CalendarImpl::export is more specific than the inferred return type 'Generator<int, Sabre\VObject\Document, mixed, void>' (see https://psalm.dev/070)
|
InvalidReturnType:
apps/dav/lib/CalDAV/CalendarImpl.php#L297
apps/dav/lib/CalDAV/CalendarImpl.php:297:79: InvalidReturnType: The declared return type 'array<string, array<string, string>>' for OCA\DAV\CalDAV\CalendarImpl::import is incorrect, got 'array<array-key, array{errors?: non-empty-array<array-key, mixed>, outcome: 'created'|'error'|'exists'|'updated'}>' (see https://psalm.dev/011)
|
InvalidReturnStatement:
apps/dav/lib/CalDAV/CalendarImpl.php#L359
apps/dav/lib/CalDAV/CalendarImpl.php:359:10: InvalidReturnStatement: The inferred type 'array<array-key, array{errors?: non-empty-array<array-key, mixed>, outcome: 'created'|'error'|'exists'|'updated'}>' does not match the declared return type 'array<string, array<string, string>>' for OCA\DAV\CalDAV\CalendarImpl::import (see https://psalm.dev/128)
|
InvalidReturnType:
apps/dav/lib/CalDAV/Import/ImportService.php#L37
apps/dav/lib/CalDAV/Import/ImportService.php:37:104: InvalidReturnType: Not all code paths of OCA\DAV\CalDAV\Import\ImportService::import end in a return statement, return type array<array-key, mixed> expected (see https://psalm.dev/011)
|
TypeDoesNotContainType:
apps/dav/lib/CalDAV/Import/ImportService.php#L74
apps/dav/lib/CalDAV/Import/ImportService.php:74:8: TypeDoesNotContainType: '\n' cannot be identical to bool (see https://psalm.dev/056)
|
TypeDoesNotContainType:
apps/dav/lib/CalDAV/Import/ImportService.php#L74
apps/dav/lib/CalDAV/Import/ImportService.php:74:40: TypeDoesNotContainType: '\r\n' cannot be identical to bool (see https://psalm.dev/056)
|
UndefinedVariable:
apps/dav/lib/CalDAV/Import/ImportService.php#L100
apps/dav/lib/CalDAV/Import/ImportService.php:100:16: UndefinedVariable: Cannot find referenced variable $timezone (see https://psalm.dev/024)
|
UndefinedVariable:
apps/dav/lib/CalDAV/Import/ImportService.php#L148
apps/dav/lib/CalDAV/Import/ImportService.php:148:16: UndefinedVariable: Cannot find referenced variable $timezone (see https://psalm.dev/024)
|
UndefinedInterfaceMethod:
apps/dav/lib/Command/ImportCalendar.php#L86
apps/dav/lib/Command/ImportCalendar.php:86:19: UndefinedInterfaceMethod: Method (OCP\Calendar\ICalendar&OCP\Calendar\ICalendarImport)::isWritable does not exist (see https://psalm.dev/181)
|
InvalidOperand:
apps/dav/lib/Command/ImportCalendar.php#L195
apps/dav/lib/Command/ImportCalendar.php:195:34: InvalidOperand: Cannot perform a numeric operation with non-numeric types string and string (see https://psalm.dev/058)
|
TaintedFile:
lib/private/App/InfoParser.php#L38
lib/private/App/InfoParser.php:38:50: TaintedFile: Detected tainted file handling (see https://psalm.dev/255)
|
TaintedCallable:
lib/private/AppFramework/Http/Dispatcher.php#L200
lib/private/AppFramework/Http/Dispatcher.php:200:37: TaintedCallable: Detected tainted text (see https://psalm.dev/243)
|
TaintedInclude:
lib/private/Installer.php#L587
lib/private/Installer.php:587:12: TaintedInclude: Detected tainted code passed to include or similar (see https://psalm.dev/251)
|
TaintedFile:
lib/private/L10N/L10N.php#L215
lib/private/L10N/L10N.php:215:41: TaintedFile: Detected tainted file handling (see https://psalm.dev/255)
|
TaintedHtml:
lib/private/TaskProcessing/Manager.php#L1002
lib/private/TaskProcessing/Manager.php:1002:64: TaintedHtml: Detected tainted HTML (see https://psalm.dev/245)
|
TaintedInclude:
lib/private/legacy/OC_App.php#L115
lib/private/legacy/OC_App.php:115:17: TaintedInclude: Detected tainted code passed to include or similar (see https://psalm.dev/251)
|