Skip to content

Commit 6fb8bfc

Browse files
authored
Chore: Replace golangci-lint linters (#412)
* Chore: Replace golangci-lint linters * Chore: ignore linters comments
1 parent e877e4f commit 6fb8bfc

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
issues:
2-
max-per-linter: 0
2+
max-issues-per-linter: 0
33
max-same-issues: 0
44

55
linters:
66
disable-all: true
77
enable:
8+
- copyloopvar
89
- durationcheck
910
- errcheck
10-
- exportloopref
1111
- forcetypeassert
1212
- godot
1313
- gofmt
@@ -19,10 +19,10 @@ linters:
1919
- nilerr
2020
- predeclared
2121
- staticcheck
22-
- tenv
2322
- unconvert
2423
- unparam
2524
- unused
25+
- usetesting
2626

2727
run:
2828
# Prevent false positive timeouts in CI

internal/provider/tar_archiver_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func TestTarArchiver_File(t *testing.T) {
4444
})
4545
}
4646

47+
//nolint:usetesting
4748
func TestTarArchiver_FileMode(t *testing.T) {
4849
file, err := os.CreateTemp("", "archive-file-mode-test.tar.gz")
4950
if err != nil {
@@ -69,7 +70,7 @@ func TestTarArchiver_FileMode(t *testing.T) {
6970

7071
func TestTarArchiver_FileModified(t *testing.T) {
7172
var (
72-
tarFilePath = filepath.Join(t.TempDir(), "archive-file-modified.tar.gz")
73+
tarFilePath = filepath.Join("", "archive-file-modified.tar.gz")
7374
toTarPath = filepath.FromSlash("./test-fixtures/test-dir/test-file.txt")
7475
)
7576

internal/provider/zip_archiver_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func TestZipArchiver_File(t *testing.T) {
4040
})
4141
}
4242

43+
//nolint:usetesting
4344
func TestZipArchiver_FileMode(t *testing.T) {
4445
file, err := os.CreateTemp("", "archive-file-mode-test.zip")
4546
if err != nil {

0 commit comments

Comments
 (0)