You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using [`infection/infection`](https://github.com/infection/infection) to ensure a minimum quality of the tests.
52
+
53
+
Enable `Xdebug` and run
54
+
55
+
```sh
56
+
make mutation-tests
57
+
```
58
+
59
+
to run mutation tests.
60
+
61
+
## Refactoring
62
+
63
+
We are using [`rector/rector`](https://github.com/rectorphp/rector) to automatically refactor code.
64
+
65
+
Run
66
+
67
+
```sh
68
+
make refactoring
69
+
```
70
+
71
+
to automatically refactor code.
72
+
73
+
## Security Analysis
74
+
75
+
We are using [`composer`](https://github.com/composer/composer) to run a security analysis.
76
+
77
+
Run
78
+
79
+
```sh
80
+
make security-analysis
81
+
```
82
+
83
+
to run a security analysis.
84
+
50
85
## Static Code Analysis
51
86
52
-
We are using [`vimeo/psalm`](https://github.com/vimeo/psalm) to statically analyze the code.
87
+
We are using [`phpstan/phpstan`](https://github.com/phpstan/phpstan) and [`vimeo/psalm`](https://github.com/vimeo/psalm) to statically analyze the code.
53
88
54
89
Run
55
90
@@ -59,17 +94,17 @@ make static-code-analysis
59
94
60
95
to run a static code analysis.
61
96
62
-
We are also using the baseline feature of [`vimeo/psalm`](https://psalm.dev/docs/running_psalm/dealing_with_code_issues/#using-a-baseline-file).
97
+
We are also using the baseline features of[`phpstan/phpstan`](https://phpstan.org/user-guide/baseline) and[`vimeo/psalm`](https://psalm.dev/docs/running_psalm/dealing_with_code_issues/#using-a-baseline-file).
63
98
64
99
Run
65
100
66
101
```sh
67
102
make static-code-analysis-baseline
68
103
```
69
104
70
-
to regenerate the baseline in [`../psalm-baseline.xml`](../psalm-baseline.xml).
105
+
to regenerate the baselines in[`../phpstan-baseline.neon`](../phpstan-baseline.neon) and[`../psalm-baseline.xml`](../psalm-baseline.xml).
71
106
72
-
:exclamation: Ideally, the baseline should shrink over time.
107
+
:exclamation: Ideally, the baselines should shrink over time.
73
108
74
109
## Tests
75
110
@@ -83,18 +118,6 @@ make tests
83
118
84
119
to run all the tests.
85
120
86
-
## Mutation Tests
87
-
88
-
We are using [`infection/infection`](https://github.com/infection/infection) to ensure a minimum quality of the tests.
89
-
90
-
Enable `pcov` or `Xdebug` and run
91
-
92
-
```sh
93
-
make mutation-tests
94
-
```
95
-
96
-
to run mutation tests.
97
-
98
121
## Extra lazy?
99
122
100
123
Run
@@ -103,7 +126,7 @@ Run
103
126
make
104
127
```
105
128
106
-
to enforce coding standards, run a static code analysis, and run tests!
129
+
to automatically refactor code, enforce coding standards, run a static code analysis, and run tests!
0 commit comments