mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-23 21:16:13 +01:00
Commit graph

16 commits

Author SHA1 Message Date
Oliver Klee
60145ba685
[TASK] Raise PHPStan to level 9 (#1269)
Fixes #1252
2024-05-06 13:25:05 +02:00
Oliver Klee
681d288653
[TASK] Raise PHPStan to level 8 (#1267) 2024-05-06 10:52:07 +00:00
Oliver Klee
86676e8cb9
[TASK] Raise PHPStan to level 6 (#1258)
Part of #1252
2024-05-06 04:32:12 +00:00
Oliver Klee
30457228d5
[TASK] allow assertInstanceOf checks for PHPStan (#1256)
These assertions are useful in tests also in cases where we have
the corresponding type annotations in the production code.

Part of #1252
2024-04-29 23:13:07 +02:00
Oliver Klee
4f1d758e48
[TASK] Drop redundant bootstrap information from PHPStan config (#1253)
This entry is not required - PHPStan already uses the Composer
autoloader.

Fixes #1245
2024-04-29 06:59:29 +02:00
Oliver Klee
f28b8479e6
[TASK] Raise PHPStan to level 4 (#1254)
The higher level creates new warnings which I will address in
a separate change.

Part of #1252
2024-04-29 06:59:18 +02:00
Oliver Klee
74d26a72a0
[CLEANUP] Reduce redundancies in the PHPStan configuration (#1242)
Directories configured via `paths` already allows PHPStan to discover
the symbols in the code located there. So there is no need to add
these directories again via `scanDirectories`.

https://phpstan.org/user-guide/discovering-symbols#third-party-code-outside-of-composer-dependencies
2024-04-18 15:40:58 +02:00
cschnell
e7d7cbd196
[TASK] Add DebugUtility::debug() to list of disallowedStaticCalls (#1232) 2024-04-17 09:19:31 +00:00
1462282da6
[TASK] Add PHPStan extension for disallowed calls (#1159)
A new composer package "spaze/phpstan-disallowed-calls" is added.
This one is a PHPStan extension which will check for forbidden calls.
Those calls need to be defined per project.
We use this to prevent debugging and other none good practices from
showing up in our code base.

We include the pre defined rules from the package.
Those can be argued and adjusted once we hit them.

Resolves: #1158
2024-02-06 12:55:29 +00:00
db5535a7a0
[TASK] Add PHPStan extension for cognitive load (#1156)
A new composer package "tomasvotruba/cognitive-complexity" is added.
This one is a PHPStan extension which will check the cognitive
complexity of classes and functions/methods.

We have very low numbers as our examples are not too complex yet.
Real projects adopting the extension might configure higher values in
the beginning or use the baseline approach.

Resolves: #1154
2024-02-06 13:52:03 +01:00
024f2e70b7
[TASK] Streamline indentation levels of phpstan.neon (#1155)
There were mixed indentation levels.
Those are now streamlined to level of 2.
This follows the existing convention for yaml files.
2024-02-06 13:27:28 +01:00
Łukasz Uznański
472f08ae9c
[FEATURE] Add type coverage (#889) 2023-10-23 10:48:53 +02:00
Oliver Klee
be838adde5
[TASK] Remove the ancient acceptance tests (#512)
The acceptance tests have not been testing the extension itself,
have not been maintained for quite some time, and do not serve
as a good example anymore.

Until we have a proper set of example acceptance tests, we should
remove them.

Also drop the now-unused dependency on Codeception.
2022-08-28 09:33:50 +02:00
Oliver Klee
3939ad083e
[TASK] Also check Configuration/ and Tests/ with PHPStan (#308) 2021-09-22 17:53:03 +02:00
Oliver Klee
a173900a7f
[TASK] Enhance the PHPStan configuration (#302)
- configure the checked paths via the configuration file
- do not output a progress bar on CI
- add a baseline file and a command for creating it
- cap the number of processes

Fixes #281
2021-09-13 04:06:10 +02:00
Oliver Klee
db1080b119
[FEATURE] Add type checking via PHPStan (#218) 2021-03-17 01:08:40 +01:00