Skip to content
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

Merged
merged 7 commits into from
Jun 22, 2024
Merged

Support related locations #55

merged 7 commits into from
Jun 22, 2024

Conversation

haya14busa
Copy link
Member

Copy link
Contributor

github-actions bot commented Jun 9, 2024

🏷️ [bumpr] Next version:v1.19.0 Changes:v1.18.1...reviewdog:support-related-locations

@haya14busa haya14busa force-pushed the support-related-locations branch from 1f2f48c to ad7ea01 Compare June 17, 2024 13:55
@@ -21,7 +21,7 @@ func unused() {
regexp.Compile(".\\")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <S1007> reported by reviewdog 🐶
should use raw string (...) with regexp.Compile to avoid having to escape twice

@@ -21,7 +21,7 @@
regexp.Compile(".\\")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <SA1000> reported by reviewdog 🐶
error parsing regexp: trailing backslash at end of expression: ``

@@ -21,7 +21,7 @@
regexp.Compile(".\\")

s := []string{}
if s != nil {
if s != nil { // test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <S1031> reported by reviewdog 🐶
unnecessary nil check around range

@@ -21,7 +21,7 @@
regexp.Compile(".\\")

s := []string{}
if s != nil {
if s != nil { // test
Copy link
Contributor

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

@@ -12,6 +12,8 @@ const (
)

func unused() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <U1000> reported by reviewdog 🐶
func unused is unused

@@ -12,6 +12,8 @@
)

func unused() {
s := []string{}

regexp.Compile(".+")

if errors.New("abcd") == errors.New("abcd") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <SA9003> reported by reviewdog 🐶
empty branch

@@ -20,8 +22,7 @@

regexp.Compile(".\\")

s := []string{}
if s != nil {
if s != nil { // test
Copy link
Contributor

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

@haya14busa haya14busa force-pushed the support-related-locations branch 2 times, most recently from 623092f to 131a777 Compare June 17, 2024 14:01
@haya14busa haya14busa force-pushed the support-related-locations branch from 131a777 to e1c729d Compare June 17, 2024 14:02
if errors.New("abcd") == errors.New("abcd") {
// Test SA4000
}

regexp.Compile(".\\")

s := []string{}
if s != nil {
if s != nil { // test
Copy link
Contributor

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

for _, x := range s {
fmt.Println(x)
}
}

if nonNilVar != nil {
Copy link
Contributor

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

nonNilVar := []int{}

if errors.New("abcd") == errors.New("abcd") {
// Test SA4000
}

regexp.Compile(".\\")

s := []string{}
if s != nil {
if s != nil { // test
Copy link
Contributor

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

for _, x := range s {
fmt.Println(x)
}
}

if nonNilVar != nil {
Copy link
Contributor

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

nonNilVar := []int{}

@haya14busa haya14busa marked this pull request as ready for review June 17, 2024 14:45
@@ -14,16 +14,22 @@ const (
func unused() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <U1000> reported by reviewdog 🐶
func unused is unused

@@ -14,16 +14,22 @@
func unused() {
regexp.Compile(".+")

nonNilVar := []int{}

if errors.New("abcd") == errors.New("abcd") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <SA9003> reported by reviewdog 🐶
empty branch

@@ -14,16 +14,22 @@
func unused() {
regexp.Compile(".+")

nonNilVar := []int{}

if errors.New("abcd") == errors.New("abcd") {
// Test SA4000
}

regexp.Compile(".\\")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <S1007> reported by reviewdog 🐶
should use raw string (...) with regexp.Compile to avoid having to escape twice

@@ -14,16 +14,22 @@
func unused() {
regexp.Compile(".+")

nonNilVar := []int{}

if errors.New("abcd") == errors.New("abcd") {
// Test SA4000
}

regexp.Compile(".\\")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <SA1000> reported by reviewdog 🐶
error parsing regexp: trailing backslash at end of expression: ``

if errors.New("abcd") == errors.New("abcd") {
// Test SA4000
}

regexp.Compile(".\\")

s := []string{}
if s != nil {
if s != nil { // test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <S1031> reported by reviewdog 🐶
unnecessary nil check around range

if errors.New("abcd") == errors.New("abcd") {
// Test SA4000
}

regexp.Compile(".\\")

s := []string{}
if s != nil {
if s != nil { // test
Copy link
Contributor

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

for _, x := range s {
fmt.Println(x)
}
}

if nonNilVar != nil {
Copy link
Contributor

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

nonNilVar := []int{}

@haya14busa haya14busa merged commit 7ee91d0 into master Jun 22, 2024
6 checks passed
Copy link
Contributor

🚀 [bumpr] Bumped! New version:v1.19.0 Changes:v1.18.2...v1.19.0

shogo82148 added a commit that referenced this pull request Jun 28, 2024
depup workflow has been broken by #55
I fixed it.
@shogo82148 shogo82148 mentioned this pull request Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant