-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support related locations #55
Conversation
🏷️ [bumpr] Next version:v1.19.0 Changes:v1.18.1...reviewdog:support-related-locations |
1f2f48c
to
ad7ea01
Compare
@@ -21,7 +21,7 @@ func unused() { | |||
regexp.Compile(".\\") |
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.
@@ -21,7 +21,7 @@ | |||
regexp.Compile(".\\") |
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.
@@ -21,7 +21,7 @@ | |||
regexp.Compile(".\\") | |||
|
|||
s := []string{} | |||
if s != nil { | |||
if s != nil { // test |
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.
@@ -21,7 +21,7 @@ | |||
regexp.Compile(".\\") | |||
|
|||
s := []string{} | |||
if s != nil { | |||
if s != nil { // test |
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.
🚫 [staticcheck] <SA4031> reported by reviewdog 🐶
this nil check is always true
this is the value of s
action-staticcheck/testdata/testdata.go
Line 23 in 5d4d6a7
s := []string{} |
@@ -12,6 +12,8 @@ const ( | |||
) | |||
|
|||
func unused() { |
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.
@@ -12,6 +12,8 @@ | |||
) | |||
|
|||
func unused() { | |||
s := []string{} | |||
|
|||
regexp.Compile(".+") | |||
|
|||
if errors.New("abcd") == errors.New("abcd") { |
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.
@@ -20,8 +22,7 @@ | |||
|
|||
regexp.Compile(".\\") | |||
|
|||
s := []string{} | |||
if s != nil { | |||
if s != nil { // test |
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.
🚫 [staticcheck] <SA4031> reported by reviewdog 🐶
this nil check is always true
this is the value of s
action-staticcheck/testdata/testdata.go
Line 15 in d5c274f
s := []string{} |
623092f
to
131a777
Compare
131a777
to
e1c729d
Compare
if errors.New("abcd") == errors.New("abcd") { | ||
// Test SA4000 | ||
} | ||
|
||
regexp.Compile(".\\") | ||
|
||
s := []string{} | ||
if s != nil { | ||
if s != nil { // test |
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.
🚫 [staticcheck] <SA4031> reported by reviewdog 🐶
this nil check is always true
this is the value of s
action-staticcheck/testdata/testdata.go
Line 25 in e1c729d
s := []string{} |
for _, x := range s { | ||
fmt.Println(x) | ||
} | ||
} | ||
|
||
if nonNilVar != nil { |
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.
🚫 [staticcheck] <SA4031> reported by reviewdog 🐶
this nil check is always true
this is the value of nonNilVar
action-staticcheck/testdata/testdata.go
Line 17 in e1c729d
nonNilVar := []int{} |
if errors.New("abcd") == errors.New("abcd") { | ||
// Test SA4000 | ||
} | ||
|
||
regexp.Compile(".\\") | ||
|
||
s := []string{} | ||
if s != nil { | ||
if s != nil { // test |
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.
🚫 [staticcheck] <SA4031> reported by reviewdog 🐶
this nil check is always true
this is the value of s
action-staticcheck/testdata/testdata.go
Line 25 in 97409ba
s := []string{} |
for _, x := range s { | ||
fmt.Println(x) | ||
} | ||
} | ||
|
||
if nonNilVar != nil { |
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.
🚫 [staticcheck] <SA4031> reported by reviewdog 🐶
this nil check is always true
this is the value of nonNilVar
action-staticcheck/testdata/testdata.go
Line 17 in 97409ba
nonNilVar := []int{} |
@@ -14,16 +14,22 @@ const ( | |||
func unused() { |
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.
@@ -14,16 +14,22 @@ | |||
func unused() { | |||
regexp.Compile(".+") | |||
|
|||
nonNilVar := []int{} | |||
|
|||
if errors.New("abcd") == errors.New("abcd") { |
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.
@@ -14,16 +14,22 @@ | |||
func unused() { | |||
regexp.Compile(".+") | |||
|
|||
nonNilVar := []int{} | |||
|
|||
if errors.New("abcd") == errors.New("abcd") { | |||
// Test SA4000 | |||
} | |||
|
|||
regexp.Compile(".\\") |
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.
@@ -14,16 +14,22 @@ | |||
func unused() { | |||
regexp.Compile(".+") | |||
|
|||
nonNilVar := []int{} | |||
|
|||
if errors.New("abcd") == errors.New("abcd") { | |||
// Test SA4000 | |||
} | |||
|
|||
regexp.Compile(".\\") |
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 errors.New("abcd") == errors.New("abcd") { | ||
// Test SA4000 | ||
} | ||
|
||
regexp.Compile(".\\") | ||
|
||
s := []string{} | ||
if s != nil { | ||
if s != nil { // test |
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 errors.New("abcd") == errors.New("abcd") { | ||
// Test SA4000 | ||
} | ||
|
||
regexp.Compile(".\\") | ||
|
||
s := []string{} | ||
if s != nil { | ||
if s != nil { // test |
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.
🚫 [staticcheck] <SA4031> reported by reviewdog 🐶
this nil check is always true
this is the value of s
action-staticcheck/testdata/testdata.go
Line 25 in 9a21890
s := []string{} |
for _, x := range s { | ||
fmt.Println(x) | ||
} | ||
} | ||
|
||
if nonNilVar != nil { |
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.
🚫 [staticcheck] <SA4031> reported by reviewdog 🐶
this nil check is always true
this is the value of nonNilVar
action-staticcheck/testdata/testdata.go
Line 17 in 9a21890
nonNilVar := []int{} |
🚀 [bumpr] Bumped! New version:v1.19.0 Changes:v1.18.2...v1.19.0 |
depup workflow has been broken by #55 I fixed it.
Blocked by reviewdog/reviewdog#1770