As a follow-up for #2222435: Add a sniff to ensure @todo comments follow the coding standards, in Core the new sniff gives

--------------------------------------------------------------
A TOTAL OF 167 ERRORS AND 0 WARNINGS WERE FOUND IN 124 FILES
--------------------------------------------------------------

Most, if not all, should be able to get fixed automatically. There will also be many in Contrib and a fixer will save hours of developer time.

Comments

jonathan1055 created an issue. See original summary.

adamzimmermann’s picture

Assigned: Unassigned » adamzimmermann
adamzimmermann’s picture

Made some progress on this yesterday. Hoping to sort out the remaining issues today.

adamzimmermann’s picture

Assigned: adamzimmermann » Unassigned
Status: Active » Needs review

PR ready with tests and code style checks passing locally.

https://github.com/pfrenssen/coder/pull/123

Arkener’s picture

Status: Needs review » Needs work

Thank you!, I've left some feedback on your PR.

adamzimmermann’s picture

Status: Needs work » Needs review

New PR created to fix commit history and address feedback.

https://github.com/pfrenssen/coder/pull/125

  • adamzimmermann authored 1617b8e on 8.x-3.x
    feat(Todo): Add fixer for todo comments (#3177471 by adamzimmermann)
    
    
klausi’s picture

Status: Needs review » Fixed

Merged, thanks!

jonathan1055’s picture

Nice work @adamzimmermann.

Now we can raise a core issue to fix these. Previously I have started the issue before the new version of Coder is used in core, and used a patch to add the new sniff. We could do that again, as it will be a while before Core 9.2 starts using Coder 8.3.11 (especially is this version does not exist yet)

klausi’s picture

I'm planning to release Coder 8.3.11 after #3177757: InlineVariableComment fix breaks on commented var block is done.

adamzimmermann’s picture

Core issue created. I'm hoping to get it sorted out shortly.

https://www.drupal.org/project/drupal/issues/3180696

jonathan1055’s picture

Added core issue as related.

jonathan1055’s picture

Status: Fixed » Needs review
Related issues: -#3180696: Fix 'Drupal.Commenting.TodoComment' coding standard

Ah, I did not see you have already referenced this from the other end.

jonathan1055’s picture

Now I'm confused. This issue no longer appears in the Core one. Adding back.

jonathan1055’s picture

Status: Needs review » Fixed
Related issues: -#3180696: Fix 'Drupal.Commenting.TodoComment' coding standard

Sorry for the noise. Got it wrong due to old form data changing the status.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.