Skip to content

Commit 33b6fe4

Browse files
committed
dev: remove unnecessary factorization to have a more homogeneous and simple approach
1 parent 96a8653 commit 33b6fe4

File tree

6 files changed

+74
-89
lines changed

6 files changed

+74
-89
lines changed

test/data.go

-18
This file was deleted.

test/fix_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ func TestFix(t *testing.T) {
2121
}
2222

2323
tmpDir := filepath.Join(testdataDir, "fix.tmp")
24-
os.RemoveAll(tmpDir) // cleanup after previous runs
24+
_ = os.RemoveAll(tmpDir) // cleanup previous runs
2525

2626
if os.Getenv("GL_KEEP_TEMP_FILES") == "1" {
2727
t.Logf("Temp dir for fix test: %s", tmpDir)
2828
} else {
2929
t.Cleanup(func() {
30-
os.RemoveAll(tmpDir)
30+
_ = os.RemoveAll(tmpDir)
3131
})
3232
}
3333

@@ -61,7 +61,7 @@ func TestFix(t *testing.T) {
6161
Runner().
6262
Run()
6363

64-
// nolintlint test uses non existing linters (bob, alice)
64+
// nolintlint test uses non-existing linters (bob, alice)
6565
if rc.ExpectedLinter != "nolintlint" {
6666
runResult.ExpectExitCode(exitcodes.Success)
6767
}

test/linters_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414
"github.com/golangci/golangci-lint/test/testshared"
1515
)
1616

17+
const testdataDir = "testdata"
18+
1719
func TestSourcesFromTestdataWithIssuesDir(t *testing.T) {
1820
testSourcesFromDir(t, testdataDir)
1921
}

0 commit comments

Comments
 (0)