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

Improves .editorconfig compatibility #817

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

pgmccann
Copy link
Contributor

My text editor (NeoVim) reports the following error when editing a workshop template:

editorconfig: invalid value for option trim_trailing_whitespace: false  # keep trailing spaces in markdown - 2+ spaces are translated to a hard break (<br/>). trim_trailing_whitespace must be either "true" or "false"
editorconfig: invalid value for option max_line_length: 100  # please keep this in sync with bin/lesson_check.py!. max_line_length must be a number or "off"

As per https://editorconfig.org:

Comments should go on their own lines.

This change brings .editorconfig in line with the file format as documented.

My text editor (NeoVim) reports the following error when editing a workshop template:

``` 
editorconfig: invalid value for option trim_trailing_whitespace: false  # keep trailing spaces in markdown - 2+ spaces are translated to a hard break (<br/>). trim_trailing_whitespace must be either "true" or "false"
editorconfig: invalid value for option max_line_length: 100  # please keep this in sync with bin/lesson_check.py!. max_line_length must be a number or "off"
```

As per https://editorconfig.org:

> Comments should go on their own lines.

This change brings .editorconfig in line with the file format as documented.
Copy link

netlify bot commented Mar 14, 2024

Deploy Preview for workshop-template-previews ready!

Name Link
🔨 Latest commit bee2d46
🔍 Latest deploy log https://app.netlify.com/sites/workshop-template-previews/deploys/66deb4418291000008e4f120
😎 Deploy Preview https://deploy-preview-817--workshop-template-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

# Please keep this in sync with bin/lesson_check.py!

trim_trailing_whitespace = false
# keep trailing spaces in markdown - 2+ spaces are translated to a hard break (<br/>)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think having the comments before the options are set (i.e., above rather than below) are clearer at signalling the reader what's coming and maybe safer that people would read it if changing it. But that may be a habit I've got.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @dpshelio - I think you're right. I'll make that adjustment.

Places .editorconfig comments before the corresponding commands rather than after.
Copy link
Member

@tobyhodges tobyhodges left a comment

Choose a reason for hiding this comment

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

Thanks @pgmccann 🙌

@tobyhodges tobyhodges merged commit a5cd828 into carpentries:gh-pages Oct 2, 2024
4 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.

3 participants