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

Standardize on sentence case #1865

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

madnicendio
Copy link

Add fixes to both titles as well as for log messages, exceptions and errors.

Copy link
Member

@CendioOssman CendioOssman left a comment

Choose a reason for hiding this comment

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

Looks mostly good. Nice work!

But I am lacking a rationale. Standardising on sentence case is fine by me, but it's good to have something for future questions.

Ideally something in the commit message(s), but at least here in the PR if it's too large.

LICENCE.TXT Outdated
@@ -279,7 +279,7 @@ POSSIBILITY OF SUCH DAMAGES.

END OF TERMS AND CONDITIONS

Appendix: How to Apply These Terms to Your New Programs
Appendix: How to apply these terms to your new programs
Copy link
Member

Choose a reason for hiding this comment

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

This file is a verbatim copy from FSF and such is best left alone.

@@ -21,7 +21,7 @@
* order to avoid excessive latency in the transport. This is needed
* because "buffer bloat" is unfortunately still a very real problem.
*
* The basic principle is TCP Congestion Control (RFC 5618), with the
* The basic principle is TCP Congestion control (RFC 5618), with the
Copy link
Member

Choose a reason for hiding this comment

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

This is the title of the RFC, and might be best left as title case.

(the RFC number seems wrong, though)

@@ -71,7 +71,7 @@ BoolParameter rawKeyboard("RawKeyboard",
"avoid mapping them to the current keyboard "
"layout", false);
IntParameter queryConnectTimeout("QueryConnectTimeout",
"Number of seconds to show the Accept Connection dialog before "
"Number of seconds to show the Accept connection dialog before "
Copy link
Member

Choose a reason for hiding this comment

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

Do we need quotes or something here now that it is less clear what is the title it is referring to?

Or perhaps rephrase it so it doesn't have to perfectly match the title?

@@ -69,7 +69,7 @@ RandomStream::RandomStream()
{
#endif
#endif
vlog.error("no OS supplied random source - using rand()");
vlog.error("No OS supplied random source: Using rand()");
Copy link
Member

Choose a reason for hiding this comment

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

A comma suggests an explanation or more details. Perhaps a comma if the dash is undesirable?

@@ -260,7 +260,7 @@ void Viewport::setCursor(int width, int height, const Point& hotspot,
if (data[i*4 + 3] != 0) break;

if ((i == width*height) && dotWhenNoCursor) {
vlog.debug("cursor is empty - using dot");
vlog.debug("Cursor is empty: Using dot");
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

@@ -166,7 +166,7 @@ void CleanDesktop::disableWallpaper() {
try {
ImpersonateCurrentUser icu;

vlog.debug("disable desktop wallpaper/Active Desktop");
vlog.debug("Disable desktop wallpaper/active desktop");
Copy link
Member

Choose a reason for hiding this comment

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

"Active Desktop" is actually a brand name

@@ -191,7 +191,7 @@ void CleanDesktop::enableWallpaper() {
ImpersonateCurrentUser icu;

if (restoreActiveDesktop) {
vlog.debug("restore Active Desktop");
vlog.debug("Restore active desktop");
Copy link
Member

Choose a reason for hiding this comment

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

Dito

The reason for this is to keep a consistency through out the project.
The reason for this is to keep a consistency through out the project.
The reason for this is to keep a consistency through out the project.
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