chore: refactor commands interfaces #1069
Annotations
10 errors and 1 warning
golangci-lint:
internal/lefthook/runner/runner.go#L97
Function `DoSkip->check->matches->matchesSlices->matchesCommands->execute` should pass the context parameter (contextcheck)
|
golangci-lint:
internal/lefthook/runner/runner.go#L114
Function `preHook->PartiallyStagedFiles->CmdLines->execute` should pass the context parameter (contextcheck)
|
golangci-lint:
internal/lefthook/runner/runner.go#L122
Function `postHook->RestoreUnstaged->Cmd->execute` should pass the context parameter (contextcheck)
|
golangci-lint:
internal/lefthook/runner/runner.go#L328
Function `prepareScript->DoSkip->check->matches->matchesSlices->matchesCommands->execute` should pass the context parameter (contextcheck)
|
golangci-lint:
internal/lefthook/runner/runner.go#L363
Function `StagedFiles->FilesByCommand->CmdLines->execute` should pass the context parameter (contextcheck)
|
golangci-lint:
internal/lefthook/runner/runner.go#L369
Function `addStagedFiles->AddFiles->BatchedCmd->Cmd->execute` should pass the context parameter (contextcheck)
|
golangci-lint:
internal/lefthook/runner/runner.go#L433
Function `prepareCommand->DoSkip->check->matches->matchesSlices->matchesCommands->execute` should pass the context parameter (contextcheck)
|
golangci-lint:
internal/lefthook/runner/runner.go#L472
Function `StagedFiles->FilesByCommand->CmdLines->execute` should pass the context parameter (contextcheck)
|
golangci-lint:
internal/lefthook/runner/runner.go#L487
Function `addStagedFiles->AddFiles->BatchedCmd->Cmd->execute` should pass the context parameter (contextcheck)
|
golangci-lint
issues found
|
golangci-lint
Restore cache failed: Dependencies file is not found in /home/runner/work/lefthook/lefthook. Supported file pattern: go.sum
|