Skip to content

Improve editor package and add-task command

Sign in for the full log view
GitHub Actions / golangci-lint failed Jun 11, 2024 in 0s

reviewdog [golangci-lint] report

reported by reviewdog 🐶

Findings (2)

internal/editor/editor.go|23 col 8| shadow: declaration of "err" shadows declaration at line 12 (govet)
internal/editor/editor.go|27 col 5| shadow: declaration of "err" shadows declaration at line 12 (govet)

Filtered Findings (0)

Annotations

Check failure on line 23 in internal/editor/editor.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] internal/editor/editor.go#L23

shadow: declaration of "err" shadows declaration at line 12 (govet)
Raw output
internal/editor/editor.go:23:8: shadow: declaration of "err" shadows declaration at line 12 (govet)
	if _, err := tmpfile.WriteString(initialText); err != nil {
	      ^

Check failure on line 27 in internal/editor/editor.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] internal/editor/editor.go#L27

shadow: declaration of "err" shadows declaration at line 12 (govet)
Raw output
internal/editor/editor.go:27:5: shadow: declaration of "err" shadows declaration at line 12 (govet)
	if err := edit(tmpfile.Name()); err != nil {
	   ^