update linter checks

This commit is contained in:
vilmibm 2022-07-26 16:06:52 -05:00
parent 710212fb3d
commit 40ecb8c188
26 changed files with 187 additions and 79 deletions

View file

@ -294,7 +294,7 @@ func TestRerun(t *testing.T) {
httpmock.StringResponse("{}"))
},
askStubs: func(as *prompt.AskStubber) {
//nolint:staticcheck // SA1019: as.StubOne is deprecated: use StubPrompt
//nolint:staticcheck // SA1019: as.StubOne is deprecated; use PrompterMock
as.StubOne(2)
},
wantOut: "✓ Requested rerun of run 1234\n",
@ -351,7 +351,7 @@ func TestRerun(t *testing.T) {
return ghrepo.FromFullName("OWNER/REPO")
}
//nolint:staticcheck // SA1019: prompt.InitAskStubber is deprecated: use NewAskStubber
//nolint:staticcheck // SA1019: prompt.InitAskStubber is deprecated: use PrompterMock
as, teardown := prompt.InitAskStubber()
defer teardown()
if tt.askStubs != nil {