-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
completions: fix mixed tab/spaces indentation #1473
Conversation
These templates use 4 spaces for indentation, but some lines used tabs. Signed-off-by: Sebastiaan van Stijn <[email protected]>
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.
LGTM
@marckhouzam PTAL |
Once support for Go 1.15 is dropped, these templates could potentially stored as separate files (go template?), and included using |
These templates use 4 spaces for indentation, but some lines used tabs. Signed-off-by: Sebastiaan van Stijn <[email protected]>
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.
I wonder if this is going to cause problems with go editors that default to using tabs. Was there an actual problem with these, or is this just cosmetic?
Regardless, I think it's fine to change it - I prefer consistency and makes sense for shell code.
I don't think editors should format content inside string-literals, but even in that case, this patch shouldn't change that (as there's already content using the same indentation)
No real problem as far as I'm aware, but it looked sloppy to have a generated file that doesn't stick to its own coding style 😅 |
These templates use 4 spaces for indentation, but some lines used tabs. Signed-off-by: Sebastiaan van Stijn <[email protected]>
These templates use 4 spaces for indentation, but some lines used tabs. Signed-off-by: Sebastiaan van Stijn <[email protected]>
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.
Looks good - but let's keep a close eye on this in case people report issues with tabs vs. spaces in their generated files. If so, I'll ping and we'll cut a quick v1.3.1
These templates use 4 spaces for indentation, but some lines used tabs. Signed-off-by: Sebastiaan van Stijn <[email protected]>
Thanks for reviewing! |
These templates use 4 spaces for indentation, but some lines used tabs.