mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-07-28 06:59:10 -04:00
feat: disable copyloopvar and intrange on Go < 1.22 (#4397)
This commit is contained in:
parent
c65868c105
commit
64492b5e59
12 changed files with 148 additions and 32 deletions
test
|
@ -84,7 +84,7 @@ func testOneSource(t *testing.T, log *logutils.StderrLog, binPath, sourcePath st
|
|||
}
|
||||
|
||||
args := []string{
|
||||
"--allow-parallel-runners",
|
||||
"--go=1.22", // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
|
||||
"--disable-all",
|
||||
"--out-format=json",
|
||||
"--max-same-issues=100",
|
||||
|
@ -99,7 +99,6 @@ func testOneSource(t *testing.T, log *logutils.StderrLog, binPath, sourcePath st
|
|||
|
||||
cmd := testshared.NewRunnerBuilder(t).
|
||||
WithBinPath(binPath).
|
||||
WithNoParallelRunners().
|
||||
WithArgs(caseArgs...).
|
||||
WithRunContext(rc).
|
||||
WithTargetPath(sourcePath).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue