Skip to content

chore: refactor commands interfaces #1069

chore: refactor commands interfaces

chore: refactor commands interfaces #1069

Triggered via pull request May 30, 2024 09:30
Status Failure
Total duration 20s
Artifacts

lint.yml

on: pull_request
golangci-lint
12s
golangci-lint
Fit to window
Zoom out
Zoom in

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