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

Add more code comments #984

Merged
merged 1 commit into from Apr 23, 2024
Merged

Add more code comments #984

merged 1 commit into from Apr 23, 2024

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Apr 23, 2024

This PR adds more code comments, to make it easier for contributors.

@@ -4,6 +4,7 @@ import {getStartTime} from '../return/duration.js';
import {joinCommand} from './escape.js';
import {normalizeFdSpecificOption} from './specific.js';

// Compute `result.command`, `result.escapedCommand` and `verbose`-related information
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe standardize with . at the end? Some comments have it and some don't.

Copy link
Collaborator Author

@ehmicky ehmicky Apr 23, 2024

Choose a reason for hiding this comment

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

Currently the comments do not use periods when there is a single sentence, and use periods otherwise.

Would you prefer to always using periods, even when there is a single sentence?

Copy link
Owner

Choose a reason for hiding this comment

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

It's not a big deal. Just felt a bit inconsistent.

@sindresorhus sindresorhus merged commit fdd8a9f into main Apr 23, 2024
12 checks passed
@sindresorhus sindresorhus deleted the code-comments branch April 23, 2024 17:48
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.

None yet

2 participants