Problem/Motivation

They typos in Coder sniff codes are bad, because then cspell will fail on projects that mention those sniff codes in their phpcs configuration.

With the release of Coder 9 we can make API breaks to fix the spelling of those error codes.

Related Drupal core issue #3418190: cspell reports sniff and error code names that cannot be changed

Proposed resolution

Fix spelling mistakes and add list of API breaks to Coder 9 release notes.

Remaining tasks

Finish PR https://github.com/pfrenssen/coder/pull/278

API changes

* Drupal.Commenting.FileComment.TeamplateSpacingAfterComment renamed to Drupal.Commenting.FileComment.TemplateSpacingAfterComment
* Drupal.Commenting.FunctionComment.TrhowsCommentIndentation renamed to Drupal.Commenting.FunctionComment.ThrowsCommentIndentation
* Drupal.InfoFiles.ClassFiles.UnecessaryFileDeclaration renamed to Drupal.InfoFiles.ClassFiles.UnnecessaryFileDeclaration
* DrupalPractice.General.OptionsTSniff.TforValue renamed to DrupalPractice.General.OptionsTSniff.OptionsValue

Comments

klausi created an issue. See original summary.

  • klausi authored c4a07633 on 9.x
    fix(cspell): Fix spelling in sniff error codes (#3556778)
    
    
klausi’s picture

Status: Active » Fixed

Merged.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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