-
Notifications
You must be signed in to change notification settings - Fork 165
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
Add tk lint
command
#592
Add tk lint
command
#592
Conversation
) | ||
|
||
// FindFiles takes a file / directory and finds all Jsonnet files | ||
func FindFiles(target string, excludes []glob.Glob) ([]string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completely unchanged from where I took it in the format.go file
There is still an issue with panics in go-jsonnet: google/go-jsonnet#544 but this is ready to review as far as the tanka side goes. When it doesn't encounter the panic (in specific cases), it works well |
It's nice to see Regarding the panic, it's close to the top of my list now. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Marked as keepalive and draft while we wait for go-jsonnet's next release |
40ca520
to
7b3e521
Compare
7b3e521
to
f5ef4e5
Compare
Like `fmt`, this takes a list of dirs/files as argument and evaluates them with the go-jsonnet lint utility The linting results are directly printed out to stderr If there are any linting errors, the command exit with status code 1 #342
The VM creation is duplicated but the impact seems pretty minimal With 4 workers, it's still roughly twice as previously on my very unpowered machine
…nking works better
f5ef4e5
to
ea0f2d3
Compare
Bump here :) This would be pretty amazing! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!, thanks for this :)
Like
fmt
, this takes a list of dirs/files as argument and evaluates them with the go-jsonnet lint utilityThe linting results are directly printed out to stderr
If there are any linting errors, the command exit with status code 1
Closes #342