Skip to content
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

docs: specifically disallow periods in error messages #5753

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

irbull
Copy link
Contributor

@irbull irbull commented Aug 20, 2024

Error messages should not include a period, as it will result in multiple sentences. Colons are the preferred punctuation but other punctuation may make sense in some cases.

@irbull irbull requested a review from kt3k as a code owner August 20, 2024 16:55
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.25%. Comparing base (2a0f511) to head (942ae65).
Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5753   +/-   ##
=======================================
  Coverage   96.25%   96.25%           
=======================================
  Files         475      475           
  Lines       38475    38475           
  Branches     5587     5587           
=======================================
  Hits        37036    37036           
  Misses       1397     1397           
  Partials       42       42           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -245,11 +245,10 @@ Bad: Can't parse input x
Good: Cannot parse input x
```

7. Messages should use a colon when providing additional information:
7. Messages should not use a period when providing additional information:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel this obscures that we prefer colon. Can we mention both colon and period?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated it to read:

7. Messages should use a colon when providing additional information. Periods
   should never be used. Other punctuation may be used as needed:

Error messages should not include a period, as it will result in
multiple sentences. Colons are the preferred punctuation but other
punctuation may make sense in some cases.
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k kt3k merged commit 8f3dd6e into denoland:main Aug 22, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants