Skip to content

Commit

Permalink
[general] Packages cleaning (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 26, 2024
1 parent 89ab8de commit ee830b9
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 922 deletions.
915 changes: 10 additions & 905 deletions .editorconfig

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions README.md
Expand Up @@ -4,20 +4,20 @@

# FastyBird IoT devices module

[![Build Status](https://img.shields.io/github/actions/workflow/status/FastyBird/devices-module/ci.yaml?style=flat-square)](https://github.com/FastyBird/devices-module/actions)
[![Licence](https://img.shields.io/github/license/FastyBird/devices-module?style=flat-square)](https://github.com/FastyBird/devices-module/blob/main/LICENSE.md)
[![Code coverage](https://img.shields.io/coverallsCoverage/github/FastyBird/devices-module?style=flat-square)](https://coveralls.io/r/FastyBird/devices-module)
[![Build Status](https://flat.badgen.net/github/checks/FastyBird/devices-module/main?cache=300&style=flat-square)](https://github.com/FastyBird/devices-module/actions)
[![Licence](https://flat.badgen.net/github/license/FastyBird/devices-module?cache=300&style=flat-square)](https://github.com/FastyBird/devices-module/blob/main/LICENSE.md)
[![Code coverage](https://flat.badgen.net/coveralls/c/github/FastyBird/devices-module?cache=300&style=flat-square)](https://coveralls.io/r/FastyBird/devices-module)
[![Mutation testing](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FFastyBird%2Fdevices-module%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/FastyBird/devices-module/main)

![PHP](https://badgen.net/packagist/php/FastyBird/devices-module?cache=300&style=flat-square)
[![Latest stable](https://badgen.net/packagist/v/FastyBird/devices-module/latest?cache=300&style=flat-square)](https://packagist.org/packages/FastyBird/devices-module)
[![Downloads total](https://badgen.net/packagist/dt/FastyBird/devices-module?cache=300&style=flat-square)](https://packagist.org/packages/FastyBird/devices-module)
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat-square)](https://github.com/phpstan/phpstan)
![PHP](https://flat.badgen.net/packagist/php/FastyBird/devices-module?cache=300&style=flat-square)
[![Latest stable](https://flat.badgen.net/packagist/v/FastyBird/devices-module/latest?cache=300&style=flat-square)](https://packagist.org/packages/FastyBird/devices-module)
[![Downloads total](https://flat.badgen.net/packagist/dt/FastyBird/devices-module?cache=300&style=flat-square)](https://packagist.org/packages/FastyBird/devices-module)
[![PHPStan](https://flat.badgen.net/static/PHPStan/enabled/green?cache=300&style=flat-square)](https://github.com/phpstan/phpstan)

![JS](https://img.shields.io/badge/js-es6-blue.svg?style=flat-square)
[![JS latest stable](https://badgen.net/npm/v/@fastybird/devices-module?cache=300&style=flat-square)](https://www.npmjs.com/package/@fastybird/devices-module)
[![JS downloads total](https://badgen.net/npm/dt/@fastybird/devices-module?cache=300&style=flat-square)](https://www.npmjs.com/package/@fastybird/devices-module)
![Types](https://badgen.net/npm/types/@fastybird/devices-module?cache=300&style=flat-square)
![JS](https://flat.badgen.net/static/js/es6/blue?cache=300&style=flat-square)
[![JS latest stable](https://flat.badgen.net/npm/v/@fastybird/devices-module?cache=300&style=flat-square)](https://www.npmjs.com/package/@fastybird/devices-module)
[![JS downloads total](https://flat.badgen.net/npm/dt/@fastybird/devices-module?cache=300&style=flat-square)](https://www.npmjs.com/package/@fastybird/devices-module)
![Types](https://flat.badgen.net/npm/types/@fastybird/devices-module?cache=300&style=flat-square)

***

Expand Down
78 changes: 78 additions & 0 deletions tools/phpstan.config.src.neon
Expand Up @@ -6,3 +6,81 @@ parameters:

bootstrapFiles:
- phpstan-bootstrap.php

ignoreErrors:
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Hydrators/Property.php
count: 2
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Entities/Devices/Device.php
count: 1
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/DevicesV1.php
count: 5
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/DevicePropertyStateV1.php
count: 2
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/DevicePropertyChildrenV1.php
count: 2
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/DevicePropertiesV1.php
count: 12
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/DeviceParentsV1.php
count: 1
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/DeviceControlsV1.php
count: 8
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/DeviceChildrenV1.php
count: 1
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/ConnectorsV1.php
count: 4
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/ConnectorPropertyStateV1.php
count: 2
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/ConnectorPropertiesV1.php
count: 12
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/ConnectorControlsV1.php
count: 8
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/ChannelsV1.php
count: 11
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/ChannelPropertyStateV1.php
count: 3
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/ChannelPropertyChildrenV1.php
count: 3
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/ChannelPropertiesV1.php
count: 18
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/ChannelControlsV1.php
count: 11
-
message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
path: ../src/Controllers/BaseV1.php
count: 1
14 changes: 14 additions & 0 deletions tools/phpstan.config.tests.neon
Expand Up @@ -9,3 +9,17 @@ parameters:

scanDirectories:
- ../src

ignoreErrors:
-
message: '#^Return type of call to method PHPUnit\\Framework\\TestCase::createMock\(\) contains unresolvable type.#'
path: ../tests/cases/unit/Subscribers/ModuleEntitiesTest.php
count: 28
-
message: '#^Return type of call to method PHPUnit\\Framework\\TestCase::createMock\(\) contains unresolvable type.#'
path: ../tests/cases/unit/Models/States/ChannelPropertiesStatesWritingTest.php
count: 6
-
message: '#^Return type of call to method PHPUnit\\Framework\\TestCase::createMock\(\) contains unresolvable type.#'
path: ../tests/cases/unit/Models/States/ChannelPropertiesStatesReadingTest.php
count: 4
3 changes: 0 additions & 3 deletions tools/phpstan.src.neon
Expand Up @@ -11,6 +11,3 @@ parameters:
- ../tests/stubs/LinkInterface.stub
- ../tests/stubs/PositionInterface.stub
- ../tests/stubs/SchemaInterface.stub

ignoreErrors:
- message: '#^Parameter \#1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.#'
3 changes: 0 additions & 3 deletions tools/phpstan.tests.neon
Expand Up @@ -4,6 +4,3 @@ includes:

parameters:
resultCachePath: %currentWorkingDirectory%/var/tools/PHPStan/resultCache.tests.php

ignoreErrors:
- message: '#^Return type of call to method PHPUnit\\Framework\\TestCase::createMock\(\) contains unresolvable type.#'

0 comments on commit ee830b9

Please sign in to comment.