-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
require-description-complete-sentence edge conditions #66
Comments
Another edge case: proper nouns /**
* This method is defined for backwards compatibility with pre-1.0 releases of
* Cheerio. Please use [the `load` method exported by the module]{@link
* module:cheerio.load} instead.
*/ |
Given
I get this error:
More or less the same issue as the previous comment. I don't see a benefit in forbidding uppercase letters at all. |
connected with #16 |
Another edge case that I hit all the time: /**
* Any kind of fowl (e.g. a duck).
*/ There's a whole list of these here: https://en.wikipedia.org/wiki/List_of_Latin_abbreviations |
@cscott : I am not aware of I marked the mistaken-caps-after-colon issue as resolved, as it appears no longer to be an issue. @jugglinmike : We couldn't possibly detect all of the proper nouns, so you'd need to work around it. @c-vetter : I do not see any error at this point for the code you provided, so it has apparently since been resolved. @hildjj : As per usage on the site you linked, |
…to end "sentence"; fixes gajus#66
…to end "sentence"; fixes gajus#66
@brettz9 It's been five years --- I can't recall the exact text which prompted filing the bug at this point. But the preceding is an example of the use of a long dash. Some folks type it with two or three ascii hyphens; see https://en.wikipedia.org/wiki/Dash#Approximating_the_em_dash_with_two_or_three_hyphens and similarly spacing around the dash seems to vary between British and American usage: https://en.wikipedia.org/wiki/Dash#Typographic_details I suspect there are also uses of consecutive hyphens as a horizontal line, such as:
In our codebase (MediaWiki) there are also uses of the two-dash version, like:
Hopefully that will help you write a regression test, whether or not the original bug has been fixed sometime in the past 5 years. |
…to end "sentence" and protect backtick content; fixes gajus#66
…to end "sentence" and protect backtick content; fixes #66
🎉 This issue has been resolved in version 39.7.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks. I've protected backtick content and allowed it as the end of a "sentence", but I think dashes—even line separator ones—ought not prevent the rule from reporting missing terminal punctuation since I think it is in the spirit of the rule to add grammatical strictness. |
More edge conditions for require-description-complete-sentence:
:
: https://www.grammarly.com/blog/capitalization-after-colons/---
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: