Skip to content

Commit ae02093

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

File tree

6 files changed

+78
-89
lines changed

6 files changed

+78
-89
lines changed

test/data.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

test/fix_test.go

Lines changed: 3 additions & 3 deletions
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

Lines changed: 2 additions & 0 deletions
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)