Skip to content

Stronger autoformatting #6

@sparkprime

Description

@sparkprime

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions