Closed alexellis closed 4 years ago
Some are correct, e.g. https://github.com/tinkerbell/tink/blob/master/executor/executor.go#L61 but @alexellis is correct. We should be running golint
and go vet
and fmtcheck
as part of CI.
I will open separate issues.
👍
According to idiomatic Golang style, error strings should not begin with a capital letter.
https://github.com/golang/go/wiki/CodeReviewComments#error-strings
Almost all of the error strings found in the workflow engine do not follow this rule:
https://github.com/tinkerbell/tink/blob/master/executor/executor.go#L26 https://github.com/tinkerbell/tink/blob/master/executor/executor.go#L89
I don't know where it is on the list, but perhaps going forward it might be worth following for new code and when making changes? cc @nathangoulding @deitch
golint
may find this.