Skip to content

[tuya-connector] Connector cleanup (#191) #1020

[tuya-connector] Connector cleanup (#191)

[tuya-connector] Connector cleanup (#191) #1020

Triggered via push November 24, 2023 11:03
Status Success
Total duration 24m 55s
Artifacts 1

ci.yaml

on: push
Matrix: Code linting
Matrix: Code quality assurance
Matrix: Code static analysis
Matrix: Test for mutants
Matrix: Build code for distribution
Matrix: Code tests
Matrix: Publish code distribution to Github packages
Matrix: Publish code distribution to NPM
Matrix: Code tests with code coverage
Fit to window
Zoom out
Zoom in

Annotations

17 warnings
Code quality assurance (8.1, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Code linting (8.2, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Code quality assurance (8.2, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Code linting (8.1, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Code static analysis (8.2, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Code static analysis (8.1, 18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Publish code distribution to Github packages (18, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: battila7/get-version-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Publish code distribution to Github packages (18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Publish code distribution to Github packages (18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Publish code distribution to NPM (18, ubuntu-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: battila7/get-version-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Publish code distribution to NPM (18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Publish code distribution to NPM (18, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test for mutants (8.2, ubuntu-latest): src/Entities/Devices/Properties/Mapped.php#L164
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong public function getDefault() : bool|float|int|string|DateTimeInterface|MetadataTypes\ButtonPayload|MetadataTypes\SwitchPayload|MetadataTypes\CoverPayload|null { - if (!$this->getParent() instanceof Variable) { + if (!true) { throw new Exceptions\InvalidState('Reading default value is allowed only for variable parent properties'); } return MetadataUtilities\ValueHelper::transformValueFromMappedParent($this->getDataType(), $this->getParent()->getDataType(), $this->getParent()->getDefault());
Test for mutants (8.2, ubuntu-latest): src/Entities/Devices/Properties/Mapped.php#L195
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong public function getValue() : bool|float|int|string|DateTimeInterface|MetadataTypes\ButtonPayload|MetadataTypes\SwitchPayload|MetadataTypes\CoverPayload|null { - if (!$this->getParent() instanceof Variable) { + if (!true) { throw new Exceptions\InvalidState('Reading value is allowed only for variable parent properties'); } return MetadataUtilities\ValueHelper::transformValueFromMappedParent($this->getDataType(), $this->getParent()->getDataType(), $this->getParent()->getValue());
Test for mutants (8.2, ubuntu-latest): src/Entities/Devices/Properties/Mapped.php#L229
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ */ public function toArray() : array { - if ($this->getParent() instanceof Entities\Devices\Properties\Variable) { + if (true) { return array_merge(parent::toArray(), ['parent' => $this->getParent()->getId()->toString(), 'default' => MetadataUtilities\ValueHelper::flattenValue($this->getDefault()), 'value' => MetadataUtilities\ValueHelper::flattenValue($this->getValue())]); } return array_merge(parent::toArray(), ['parent' => $this->getParent()->getId()->toString(), 'settable' => $this->isSettable(), 'queryable' => $this->isQueryable()]); } }
Test for mutants (8.2, ubuntu-latest): src/Entities/Devices/Properties/Property.php#L98
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ { return $this->parent; } - public function setParent(self $property) : void + protected function setParent(self $property) : void { $this->parent = $property; }
Test for mutants (8.2, ubuntu-latest): src/Queries/Entities/FindChannels.php#L56
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function byIdentifier(string $identifier) : void { $this->filter[] = static function (ORM\QueryBuilder $qb) use($identifier) : void { - $qb->andWhere('ch.identifier = :identifier')->setParameter('identifier', $identifier); + }; } public function startWithIdentifier(string $identifier) : void

Artifacts

Produced during runtime
Name Size
js-dist Expired
5.34 MB