jsonnet-style-guide icon indicating copy to clipboard operation
jsonnet-style-guide copied to clipboard

Stronger autoformatting

Open sparkprime opened this issue 7 years ago • 0 comments

Hi, I read your style guide :)

You recommend to use jsonnet fmt, which is good, but I think you want to enable more of its features:

jsonnet fmt -i -n 2 --max-blank-lines 2 --sort-imports --string-style s --comment-style s

I would like to make those options the default in future.

There is a very basic linter in go-jsonnet that can check for variables that are declared but not used. That might also be a good place to check that locals are lowerCamelCase, if anyone wants to add that :)

sparkprime avatar Feb 15 '18 23:02 sparkprime