[WIP] Add some test in CI to check that the code is clean #86

Draft
mtrossevin wants to merge 4 commits from ci-enablement into unstable

4 commits

Author SHA1 Message Date
Mathieu Trossevin 7ecfa19d85 Merge branch 'unstable' into ci-enablement 2023-11-16 11:06:59 +01:00
Mathieu Trossevin 7b29422730
Attempt to enable use of more than one agent
All checks were successful
Tests / PHPStan (static analysis) <sub>Send us [feedback](https://github.com/jenkinsci/junit-plugin/issues)
gitea/evoadmin-web/pipeline/pr-master This commit looks good
Primarily so that we could use shellcheck in the future on top of
PHPStan.
2023-11-15 10:57:20 +01:00
Mathieu Trossevin af94efde45
Replace isset($_POST) with !empty($_POST)
All checks were successful
Tests / PHPStan (static analysis) <sub>Send us [feedback](https://github.com/jenkinsci/junit-plugin/issues)
gitea/evoadmin-web/pipeline/head This commit looks good
The former is always true (outside of post method it is an empty array
and not null, and it cannot be `unset()`).

The check was as such either meaningless or was supposed to check that
something was sent. This commit assume the later.
2023-11-13 15:14:31 +01:00
Mathieu Trossevin 293ea73b6b
Initialise CI with PHPStan level 0
All checks were successful
Tests / PHPStan (static analysis) <sub>Send us [feedback](https://github.com/jenkinsci/junit-plugin/issues)
gitea/evoadmin-web/pipeline/head This commit looks good
2023-11-13 14:51:16 +01:00