- Issue created by @longwave
- 🇬🇧United Kingdom longwave UK
It seems like we can now remove
Drupal.Commenting.VariableComment.Missing
everywhere we have an additional ignore because this looks to be handled correctly now - but not sure if doing that is really in scope here or if we just do it later. - 🇳🇱Netherlands bbrala Netherlands
Current changes look clean and nothing stands out as weird.
If we can remove more ignores we could, but might as well be in a followup.
- 🇳🇿New Zealand quietone
I tested with 3.29 locally and now all the
phpcs:ignore Drupal.Commenting.FunctionComment.MissingReturnComment
lines are ignored and phpcs is reporting errors when previously it was not. - 🇳🇿New Zealand quietone
Created 🐛 [regression] Can no longer ignore Drupal.Commenting.FunctionComment.MissingReturnComment Active .
I also asked about this two days ago in #coder but there hasn't been a response yet.
- 🇳🇱Netherlands bbrala Netherlands
This is the changelist:
https://git.drupalcode.org/project/coder/-/compare/8.3.28..8.3.29?from_p...There are changes to that sniff it seems.
I would suspect: https://git.drupalcode.org/project/coder/-/commit/78034f0a41956c4f8d3808...
- 🇦🇹Austria klausi 🇦🇹 Vienna
While testing the latest Coder dev version on core I detected another phpcs ignore inconvenience and fixed it in 📌 Allow phpcs:ignore before param comments Active .
- 🇦🇹Austria klausi 🇦🇹 Vienna
Found one more Coder issue: 🐛 Compley array<> expressions should be allowed in @return comments Active .
I think we should upgrade straight to Coder 8.3.30 here (not released yet).
I started to work through the newly reported issues and also removed deprecated sniffs. This will not pass yet, but let me know if you like the approach.
I tested with a git checkout of Coder in the vendor directory, to ensure I'm running on the latest version of Coder. Once everything is passing here as we want it I can make a new Coder release.
- 🇦🇹Austria klausi 🇦🇹 Vienna
One nice find with the improved concat sniff: this exposed a bug in test code, yay! The test used ".." but should be "." https://git.drupalcode.org/project/drupal/-/merge_requests/12018/diffs#6...
- 🇳🇿New Zealand quietone
@klausi, I am going to work on this for a bit. I hope we don't duplicate work.
- 🇳🇿New Zealand quietone
phpcs is passing now. The only failing test is core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php which is expected since this is using a dev version of Coder.
- 🇦🇹Austria klausi 🇦🇹 Vienna
Nice, looks all good to me.
Then I will make a new Coder release now and we can use that.
- 🇦🇹Austria klausi 🇦🇹 Vienna
Coder 8.3.30 released!
https://www.drupal.org/project/coder/releases/8.3.30 →
Please update that in composer, then we can move to RTBC I think.
- 🇳🇿New Zealand quietone
For completeness only, I am adding that this is adding return descriptions for cases that were deliberately ignored in previous issues, such as, 📌 Fix Drupal.Commenting.FunctionComment.MissingReturnComment in core/lib/Drupal/Core/Config Active . I think the work to add the descriptions could have been deferred because having comments alongside an inheritdoc is a violation of our coding standards. But is it done now and hopefully the code is better for it.
- 🇦🇹Austria klausi 🇦🇹 Vienna
Thanks, looks good to me except drupal/core-recipe-unpack being added to composer.lock. Can you revert that?