devopyio / yamlfmt Goto Github PK
View Code? Open in Web Editor NEWYAML formatting tool, useful for Prometheus rule formatting
Home Page: https://devopy.io
License: Apache License 2.0
YAML formatting tool, useful for Prometheus rule formatting
Home Page: https://devopy.io
License: Apache License 2.0
Hi
Thanks for your library. It is very easy to get installed. I believe it is a great start.
I had a go with your tool and left some feedback for you.
Cheers.
I understand that you may not have imagined I would use your tool in this way. I thought I had better to log an issue for your discretion. Here is where I got started with the file below. I would like it to be yaml lint compliant:
./changelog.yml
1:1 warning missing document start "---" (document-start)
17:81 error line too long (82 > 80 characters) (line-length)
After running your tool against it, I got more warnings instead:
./changelog.yml
1:1 warning missing document start "---" (document-start)
4:1 error wrong indentation: expected 2 but found 0 (indentation)
7:5 error wrong indentation: expected 2 but found 4 (indentation)
13:5 error wrong indentation: expected 2 but found 4 (indentation)
13:81 error line too long (115 > 80 characters) (line-length)
18:81 error line too long (86 > 80 characters) (line-length)
24:5 error wrong indentation: expected 2 but found 4 (indentation)
24:81 error line too long (81 > 80 characters) (line-length)
25:81 error line too long (85 > 80 characters) (line-length)
33:5 error wrong indentation: expected 2 but found 4 (indentation)
36:5 error wrong indentation: expected 2 but found 4 (indentation)
42:5 error wrong indentation: expected 2 but found 4 (indentation)
50:5 error wrong indentation: expected 2 but found 4 (indentation)
50:81 error line too long (84 > 80 characters) (line-length)
61:5 error wrong indentation: expected 2 but found 4 (indentation)
67:5 error wrong indentation: expected 2 but found 4 (indentation)
71:5 error wrong indentation: expected 2 but found 4 (indentation)
78:5 error wrong indentation: expected 2 but found 4 (indentation)
Please install our new product, Sonatype Lift with advanced features
yamlfmt produces output that has no comments that were in the input and also keys in maps are sorted so it might look very different from the original input.
I would find it very useful if there was support for a less intrusive formatting that keeps the comments and original layout of the input file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.