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

feature request: ignore specific lines instead of entire file #126

Open
Barabazs opened this issue Jul 16, 2023 · 3 comments
Open

feature request: ignore specific lines instead of entire file #126

Barabazs opened this issue Jul 16, 2023 · 3 comments
Milestone

Comments

@Barabazs
Copy link

I would like to mark a line as to be ignored by yamlfmt. Similar to the use of # noqa and similar ignore syntaxes.

I'm using yamlfmt to format CircleCI config files, which references variables as << foo.bar >> and this should not be reformatted. But when limiting line length to N, yamlfmt will try to break it down in smaller lines.

@braydonk
Copy link
Collaborator

Hi @Barabazs thanks for the feature request. This is a pretty reasonable request, however it would be really hard to implement given the current architecture of yamlfmt.

Since it (along with some other requested features) likely requires writing a custom yaml parser, it is probably too big of an undertaking for me to try and address it soon. I would like to be able to make it happen some day though. Sorry 😞

@braydonk braydonk added this to the Future Plans milestone Jul 17, 2023
@Barabazs
Copy link
Author

Hi @braydonk thank you for the prompt response. I totally understand and respect your position.
I never programmed in Go, otherwise I might give it a try with some guidance.

@braydonk
Copy link
Collaborator

Yeah I understand. Even though imo Go is quite an easy language to pick up, this task would probably be quite challenging.

If anything changes and I'm able to spend more than just spare time on this project, then this would likely be the first major thing I take on. So never say never!

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

No branches or pull requests

2 participants