Skip to content

Commit de947f2

Browse files
A-5ingheddycharly
andauthored
chore(deps): update dependencies and improve linter configuration (#2304)
* chore(deps): update actions/setup-go to v5.3.0, golangci-lint-action to v6.5.0 Signed-off-by: A. Singh <[email protected]> * chore(linter): replace exportloopref with copyloopvar and tenv with usetesting in .golangci.yml Signed-off-by: A. Singh <[email protected]> * test(report): use t.TempDir() instead of os.MkdirTemp() in TestSave Signed-off-by: A. Singh <[email protected]> --------- Signed-off-by: A. Singh <[email protected]> Signed-off-by: Charles-Edouard Brétéché <[email protected]> Co-authored-by: Charles-Edouard Brétéché <[email protected]>
1 parent 6396476 commit de947f2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ linters:
3030
- nosprintfhostport
3131
# - paralleltest
3232
- staticcheck
33-
- tenv
3433
- thelper
3534
- tparallel
3635
- typecheck
3736
- unconvert
3837
- unused
38+
- usetesting
3939
- wastedassign
4040
- whitespace
4141

pkg/report/report_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ func TestSave(t *testing.T) {
130130
format: v1alpha2.ReportFormatType("xyz"),
131131
wantErr: true,
132132
}}
133-
path, err := os.MkdirTemp("", "")
134-
assert.NoError(t, err)
133+
path := t.TempDir()
135134
for _, tt := range tests {
136135
t.Run(tt.name, func(t *testing.T) {
137136
err := Save(tt.report, tt.format, path, string(tt.format))

0 commit comments

Comments
 (0)