-
Notifications
You must be signed in to change notification settings - Fork 0
test auto code review #6
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
base: main
Are you sure you want to change the base?
Conversation
// sample 4 | ||
// | ||
// missing error check | ||
unecessaryNewLine() |
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.
🚫 [golangci-autoreview] reported by reviewdog 🐶
Error return value is not checked (errcheck)
// | ||
// missing error check | ||
unecessaryNewLine() | ||
|
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.
🚫 [golangci-autoreview] reported by reviewdog 🐶
unnecessary trailing newline (whitespace)
fmt.Print("this function is unused / deadcodes") | ||
} | ||
|
||
func unecessaryNewLine() 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.
🚫 [golangci-autoreview] reported by reviewdog 🐶
unnecessary leading newline (whitespace)
// | ||
// nilness potential | ||
var points []int | ||
fmt.Println("show point for index '5'", points[5]) |
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.
🚫 [golangci-autoreview] reported by reviewdog 🐶
nilness: nil dereference in index operation (govet)
No description provided.