Back in July, in π Drupal 11 compatibility Fixed , .gitlab-ci.yml was modified to use the CORE phpcs sniffs instead of the default sniffs.
Core is much more permissive that the sniffs that run by default on contrib, so potentially we are missing a lot of coding standards problems.
I have been wondering why certain things in the codebase that I know to be wrong don't show up as errors in the test cases (for example, using public function setUp()
in test cases instead of protected function setUp(): void
.
Rather than stumbling upon these things and opening up individual issues, I'm going to turn on the default phpcs testing here and see what gets called out.
Active
4.0
Flag core