Skip to content

Commit 221be1e

Browse files
committed
Fix testifylint issues
1 parent bf7974c commit 221be1e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.golangci.reference.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ linters-settings:
12921292
# A set of custom functions to check in addition to the builtin ones.
12931293
# Default: json, xml, gopkg.in/yaml.v3, BurntSushi/toml, mitchellh/mapstructure, jmoiron/sqlx
12941294
functions:
1295-
# The full name of the function, including the package.
1295+
# The full name of the function, including the package.
12961296
- name: github.com/hashicorp/hcl/v2/hclsimple.DecodeFile
12971297
# The struct tag whose presence should be ensured.
12981298
tag: hcl

pkg/result/processors/autogenerated_exclude_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/result/processors/skip_files_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func newFileIssue(file string) result.Issue {
2121
}
2222

2323
func newTestSkipFiles(t *testing.T, patterns ...string) *SkipFiles {
24+
t.Helper()
2425
p, err := NewSkipFiles(patterns, "")
2526
require.NoError(t, err)
2627
return p
@@ -49,6 +50,6 @@ func TestSkipFiles(t *testing.T) {
4950

5051
func TestSkipFilesInvalidPattern(t *testing.T) {
5152
p, err := NewSkipFiles([]string{"\\o"}, "")
52-
assert.Error(t, err)
53+
require.Error(t, err)
5354
assert.Nil(t, p)
5455
}

0 commit comments

Comments
 (0)