You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CapitalPDangit is great for ensuring that the WordPress brand is spelled correctly.
It would be amazing if the sniff was customizable, so other brand names, e.g. WooCommerce could be checked too
The user provides the correctly spelled word(s), e.g. WooCommerce in the xml, e.g. as a comma separated list or as an array (whatever is preferred by the implementer)
The text was updated successfully, but these errors were encountered:
FYI: I've just closed the issue which was opened in PHPCSExtra. A generic sniff for something like this would be a nightmare to maintain and support, so I'm not interested in having a sniff like that in PHPCSExtra.
On that note: I don't think we should want it in WPCS either.
Yeah, it sounds too generic for WPCS in my opinion, that's why I suggested extras. But I can see how difficult it would be to maintain it, so I'll close this issue 👍🏼
Is your feature request related to a problem?
CapitalPDangit is great for ensuring that the WordPress brand is spelled correctly.
It would be amazing if the sniff was customizable, so other brand names, e.g. WooCommerce could be checked too
Describe the solution you'd like
Allow customizing the rule via .xml and add documentation for it to the wiki: https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties
The user provides the correctly spelled word(s), e.g. WooCommerce in the xml, e.g. as a comma separated list or as an array (whatever is preferred by the implementer)
The text was updated successfully, but these errors were encountered: