-
Notifications
You must be signed in to change notification settings - Fork 6
Test with issues #33
base: master
Are you sure you want to change the base?
Test with issues #33
Conversation
a := 1 | ||
if a != 0 { | ||
return | ||
} else { |
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.
if block ends with a return statement, so drop this else and outdent its block
import "log" | ||
|
||
func withIssue() { | ||
log.Printf("bad format: %s", 1) |
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.
Printf format %s has arg 1 of wrong type int
} | ||
|
||
func withAnotherIssue() { | ||
a := 1 |
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.
File is not goimports-ed
|
||
import "log" | ||
|
||
func withIssue() { |
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.
withIssue
is unused
log.Printf("bad format: %s", 1) | ||
} | ||
|
||
func withAnotherIssue() { |
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.
withAnotherIssue
is unused
c75fb2c
to
98222d2
Compare
e557432
to
93bb034
Compare
9d4340e
to
15c38dd
Compare
funcs := []func(){} | ||
for _, v := range []int{1, 2} { | ||
funcs = append(funcs, func() { | ||
log.Print(v) |
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.
Using the variable on range scope v
in function literal (from scopelint
)
} | ||
} | ||
|
||
func testScopeLint() { |
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.
testScopeLint
is unused (deadcode
)
No description provided.