-
Notifications
You must be signed in to change notification settings - Fork 119
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
Apply automatic formatting only to manifests #1506
Conversation
internal/formatter/yaml_formatter.go
Outdated
@@ -126,3 +134,24 @@ func mergeNodes(node *yaml.Node) { | |||
|
|||
node.Content = node.Content[:k] | |||
} | |||
|
|||
func quoteKeysWithDot(node *yaml.Node) { |
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.
Started applying this to test files, but this could also have unexpected results.
This is not used now, if we finally decide not to use it I will remove it.
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.
Not very confident to apply this transformation. Maybe just in transform.yml files ?
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.
Yeah, after some tests I think this one can be a bit misleading, I am more leaned to remove it, and apply only the automation for nested objects in manifests.
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.
Removed
internal/formatter/yaml_formatter.go
Outdated
@@ -126,3 +134,24 @@ func mergeNodes(node *yaml.Node) { | |||
|
|||
node.Content = node.Content[:k] | |||
} | |||
|
|||
func quoteKeysWithDot(node *yaml.Node) { |
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.
Not very confident to apply this transformation. Maybe just in transform.yml files ?
💚 Build Succeeded
History
cc @jsoriano |
Modifies automation introduced in #1485 so it is only applied to manifests by now.
Applying it to other files like transforms or test configuration files may lead to obscure errors.