Skip to content

Commit d2666c7

Browse files
authored
[QA] Add StructArmed to QA (#7989)
* [QA] Add StructArmed to QA * final touch: more clean skip confiig
1 parent 40ef51d commit d2666c7

19 files changed

Lines changed: 56 additions & 22 deletions

File tree

‎.github/workflows/code_analysis.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ jobs:
7979
composer require php-parallel-lint/php-parallel-lint --ansi
8080
vendor/bin/parallel-lint src bin/rector config tests rules --colors
8181
82+
-
83+
name: 'Run StructArmed'
84+
run: vendor/bin/structarmed analyze
85+
8286
name: ${{ matrix.actions.name }}
8387
runs-on: ubuntu-latest
8488
timeout-minutes: 10

‎composer.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
"webmozart/assert": "^2.3"
4343
},
4444
"require-dev": {
45+
"boundwize/structarmed": "^0.5.4",
4546
"nette/robot-loader": "^4.1",
4647
"php-parallel-lint/php-parallel-lint": "^1.4",
47-
"symplify/easy-coding-standard": "^13.1",
4848
"phpstan/extension-installer": "^1.4",
4949
"phpstan/phpstan-deprecation-rules": "^2.0",
5050
"phpstan/phpstan-phpunit": "^2.0",
@@ -55,6 +55,7 @@
5555
"rector/swiss-knife": "^2.3",
5656
"rector/type-perfect": "^2.1.2",
5757
"shipmonk/composer-dependency-analyser": "^1.8",
58+
"symplify/easy-coding-standard": "^13.1",
5859
"symplify/phpstan-extensions": "^12.0.2",
5960
"symplify/phpstan-rules": "^14.9.11",
6061
"symplify/vendor-patches": "^11.5",

‎rules-tests/Assert/Rector/ClassMethod/AddAssertArrayFromClassMethodDocblockRector/BeberleiTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Assert\Rector\ClassMethod\AddAssertArrayFromClassMethodDocblockRector;
5+
namespace Rector\Tests\Assert\Rector\ClassMethod\AddAssertArrayFromClassMethodDocblockRector;
66

77
use Iterator;
88
use PHPUnit\Framework\Attributes\DataProvider;

‎rules-tests/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector/Source/Notification.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
namespace Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector\Source;
3+
declare(strict_types=1);
4+
5+
namespace Rector\Tests\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector\Source;
46

57
class Notification
68
{

‎rules-tests/DeadCode/Rector/Cast/RecastingRemovalRector/RecastingRemovalRectorPhp74Test.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace DeadCode\Rector\Cast\RecastingRemovalRector;
5+
namespace Rector\Tests\DeadCode\Rector\Cast\RecastingRemovalRector;
66

77
use Iterator;
88
use PHPUnit\Framework\Attributes\DataProvider;

rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPublicMethodParameterRector/Source/abstract_class_with_method.php renamed to rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPublicMethodParameterRector/Source/AbstractClassWithMethod.php

File renamed without changes.

‎rules-tests/DeadCode/Rector/ClassMethod/RemoveUnusedPublicMethodParameterRector/Source/InterfaceWithMethod.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUnusedPublicMethodParameterRector\Source;
44

5-
interface interfaceWithMethod
5+
interface InterfaceWithMethod
66
{
77
public function run($a, $b);
88
}

‎rules-tests/DeadCode/Rector/FunctionLike/NarrowWideUnionReturnTypeRector/Fixture/final_inheritance.php.inc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Fixture;
55

66
use Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Source\SomeInterface;
7-
use Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Sourcet\SomeAbstractClass;
7+
use Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Source\SomeAbstractClass;
88

99
final class FinalInheritance extends SomeAbstractClass
1010
{
@@ -34,7 +34,7 @@ final class FinalInterfaceImplementation implements SomeInterface
3434
namespace Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Fixture;
3535

3636
use Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Source\SomeInterface;
37-
use Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Sourcet\SomeAbstractClass;
37+
use Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Source\SomeAbstractClass;
3838

3939
final class FinalInheritance extends SomeAbstractClass
4040
{

‎rules-tests/DeadCode/Rector/FunctionLike/NarrowWideUnionReturnTypeRector/Fixture/skip_non_final_inheritance.php.inc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Fixture;
55

66
use Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Source\SomeInterface;
7-
use Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Sourcet\SomeAbstractClass;
7+
use Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Source\SomeAbstractClass;
88

99
class SkipInheritance extends SomeAbstractClass
1010
{

‎rules-tests/DeadCode/Rector/FunctionLike/NarrowWideUnionReturnTypeRector/Source/SomeAbstractClass.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Sourcet;
3+
namespace Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\Source;
44

55
abstract class SomeAbstractClass
66
{

0 commit comments

Comments
 (0)