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 EditorConfig #428
Add EditorConfig #428
Conversation
Thanks for the contribution @jeffbyrnes . There may be some issues merging this PR, given that it is enforcing code style with less / no interaction from the users. E.g. at the moment, a user could run The conversation about introducing markdown linting / validation has come up too in puppetlabs/pdk#1051 and we've yet to define what the MD linting spec would be. We would potentially be willing to get this over the line if we were to be set to Happy to be talked in to it, if you feel strongly 😃 @jpogran , @da-ar , @binford2k - any thoughts? |
@sanfrancrisko I hear you on all points, and this can be changed to suit whatever you feel is appropriate. I will say that, without actually having EditorConfig installed as part of your For those with built-in or plugin-provided EditorConfig, it indeed is possible that it may have impact for someone where previously there was none. The Markdown whitespace rules follow the “official” guidelines from its creator, John Gruber:
The As for the base rules, those are built on the Ruby community conventions, and since Puppet is built on top of Ruby, it’s always made sense to me to treat it the same. I think using |
Hi @jeffbyrnes , thanks for coming back so rapidly and apologies for the delay my side. If you were happy to transform this in to an Thanks again for the contribution 👍 |
A helpful way to adhere to a common set of whitespace concerns. https://editorconfig.org
* YAML syntax highlighting is nice * CLI commands are generally better shown as a code block
d9acbe6
to
eb1b372
Compare
@sanfrancrisko sure thing! I’ve updated it to be an unmanaged by default template, and added docs to the README detailing how to use it. While in the README, I also made some tweaks in eb1b372, if those are unwanted, simply say the word & they’re gone. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay in getting to you @jeffbyrnes. This LGTM!
Thanks for incorporating the feedback from the team and the additional clean up, much appreciated 👍
A helpful way to adhere to a common set of whitespace concerns.
https://editorconfig.org