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

[Enhancement] Enhance the inline comment format style #1756

Open
Peefy opened this issue Nov 18, 2024 · 0 comments
Open

[Enhancement] Enhance the inline comment format style #1756

Peefy opened this issue Nov 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc.

Comments

@Peefy
Copy link
Contributor

Peefy commented Nov 18, 2024

Enhancement

At present, the implementation of KCL formatting tool will cause all inline comments to be formatted on a new empty line, and it needs to be optimized so that it is not optimized on a new line.

Example

Example 1

Before

kube = 1  # A

After

kube = 2  # A

Instead of

# A
kube = 2

Example 2

Before

kube = {
    # A
}

After

kube = {
    # A
}

Instead of

kube = {}
# A
@Peefy Peefy added this to KCL 2024 Nov 18, 2024
@Peefy Peefy added this to the v0.11.0 Release milestone Nov 18, 2024
@Peefy Peefy added tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc. enhancement New feature or request labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tool Issues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc.
Projects
Status: No status
Development

No branches or pull requests

2 participants