fix: executable path in hooks (#459) #673
Annotations
10 errors and 2 warnings
lint-soft:
pkg/proto/repo.go#L52
error returned from interface method should be wrapped: sig: func (github.com/charmbracelet/soft-serve/pkg/proto.Repository).Open() (*github.com/charmbracelet/soft-serve/git.Repository, error) (wrapcheck)
|
lint-soft:
pkg/proto/repo.go#L57
error returned from external package is unwrapped: sig: func (*github.com/charmbracelet/soft-serve/git.Repository).HEAD() (*github.com/charmbracelet/soft-serve/git.Reference, error) (wrapcheck)
|
lint-soft:
pkg/cron/cron.go#L42
mnd: Magic number: 30, in <argument> detected (gomnd)
|
lint-soft:
git/patch.go#L135
Comment should end in a period (godot)
|
lint-soft:
git/utils.go#L35
`if g.Match(fp)` has complex nested blocks (complexity: 6) (nestif)
|
lint-soft:
git/patch.go#L29
missing cases in switch of type git.DiffLineType: git.DiffLinePlain, git.DiffLineSection (exhaustive)
|
lint-soft:
git/patch.go#L67
missing cases in switch of type git.DiffLineType: git.DiffLinePlain, git.DiffLineSection (exhaustive)
|
lint-soft:
git/tree.go#L169
missing cases in switch of type git.EntryMode: git.EntryBlob, git.EntryExec, git.EntrySymlink, git.EntryCommit (exhaustive)
|
lint-soft:
git/attr.go#L50
mnd: Magic number: 2, in <argument> detected (gomnd)
|
lint-soft:
git/attr.go#L51
mnd: Magic number: 2, in <condition> detected (gomnd)
|
lint-soft
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint-soft
Restore cache failed: Dependencies file is not found in /home/runner/work/soft-serve/soft-serve. Supported file pattern: go.sum
|