Skip to content

Commit afd670b

Browse files
build(deps): bump github.com/kkHAIKE/contextcheck from 1.1.4 to 1.1.5 (#4564)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent b78225b commit afd670b

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ require (
5959
github.com/julz/importas v0.1.0
6060
github.com/karamaru-alpha/copyloopvar v1.0.9
6161
github.com/kisielk/errcheck v1.7.0
62-
github.com/kkHAIKE/contextcheck v1.1.4
62+
github.com/kkHAIKE/contextcheck v1.1.5
6363
github.com/kulti/thelper v0.6.3
6464
github.com/kunwardeep/paralleltest v1.0.10
6565
github.com/kyoh86/exportloopref v0.1.11

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/result/processors/invalid_issue.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ func (p InvalidIssue) shouldPassIssue(issue *result.Issue) (bool, error) {
3333
}
3434

3535
if issue.FilePath() == "" {
36-
// contextcheck has a known bug https://github.com/kkHAIKE/contextcheck/issues/21
37-
if issue.FromLinter != "contextcheck" {
38-
p.log.Warnf("no file path for the issue: probably a bug inside the linter %q: %#v", issue.FromLinter, issue)
39-
}
36+
p.log.Warnf("no file path for the issue: probably a bug inside the linter %q: %#v", issue.FromLinter, issue)
4037

4138
return false, nil
4239
}
@@ -47,6 +44,7 @@ func (p InvalidIssue) shouldPassIssue(issue *result.Issue) (bool, error) {
4744

4845
if !isGoFile(issue.FilePath()) {
4946
p.log.Infof("issue related to file %s is skipped", issue.FilePath())
47+
5048
return false, nil
5149
}
5250

0 commit comments

Comments
 (0)