-
Notifications
You must be signed in to change notification settings - Fork 115
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 linters #361
add linters #361
Conversation
cmd/tesla-http-proxy/main.go
Outdated
fmt.Fprintln(out, nonLocalhostWarning) | ||
fmt.Fprintln(out, "") | ||
fmt.Fprintln(out, "Options:") | ||
_, _ = fmt.Fprintf(out, "Usage: %s [OPTION...]\n", os.Args[0]) |
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.
Is there any way to disable error checking on printf?
// It is conventional not to worry about any
// error returned by Printf.
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.
quick search didn't yield any result for me on how to do this
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.
https://github.com/teslamotors/vehicle-command/pull/361/files#r1927807911
I'd also exclude file.Close.
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.
addressed
Makefile
Outdated
all: build | ||
|
||
linters: install |
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.
Why is install a prerequisite?
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.
removed
issues: | ||
exclude-dirs: | ||
- temp | ||
|
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.
issues:
exclude-dirs:
- temp
exclude:
- "Error return value of `fmt.Fprintln` is not checked"
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.
addressed
d638a3a
to
1bfa9ed
Compare
3e1eafb
to
2387952
Compare
Description
Adding a basic linter
Type of change
Please select all options that apply to this change:
Checklist:
Confirm you have completed the following steps: