Open marekdedic opened 5 years ago
@marekdedic At this time, WPCS uses non-WP specific documentation sniffs which don't take things like translators
comments into account properly.
For the more commonly used /* ... */
style for translators comments, you'll find that you will not get an error about the end character not being punctuation. However, for the (less common) // ...
-style translators comments, you will receive this error for now, until WPCS has its own set of documentation sniffs.
Does that help ?
Hi, I can confirm that this is a functioning workaround for the issue.
As far as I am concerned, this is just that - a workaround, not a solution. But I get that this depends on a lot of moving parts... Just wanted to say please don't close the issue as solved, until it really is (and other people might find your comment helpful as well...).
Thanks for the feedback.
@marekdedic No worries, not closing this (yet), though you may be interested in this issue: #1760, which was partially inspired by your question.
Bug Description
When I have a "translators" comment, phpcs complains about it not ending in a period. IMHO, this doesn't really make sense as translators comments are not regular comments and they are in my case usually not sentences, so they shouldn't need to end with a period
Minimal Code Snippet
For bugs with fixers: How was the code fixed? How did you expect the code to be fixed?
Error Code
Environment
Tested Against
develop
branch?develop
branch of WPCS.