Skip to content

Block suggestion in Socket mode #20

Block suggestion in Socket mode

Block suggestion in Socket mode #20

Re-run triggered August 16, 2024 19:24
Status Failure
Total duration 36s
Artifacts

reviewdog.yaml

on: pull_request
runner / staticcheck
23s
runner / staticcheck
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
runner / staticcheck
cannot use slackerInteractive (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
runner / staticcheck
not enough arguments in call to next\n\thave (*slacker.InteractionContext)\n\twant (*slacker.InteractionContext, *socketmode.Request)","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
runner / staticcheck
cannot use moodShortcutHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
runner / staticcheck
cannot use func(ctx *slacker.InteractionContext) {…} (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in argument to bot.UnsupportedInteractionHandler","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
runner / staticcheck
cannot use moodViewHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
runner / staticcheck
[staticcheck] reported by reviewdog 🐶 # github.com/slack-io/slacker/examples/interaction examples/interaction/main.go:23:18: cannot use slackerInteractive (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal Raw Output: {"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/slack-io/slacker/examples/interaction\nexamples/interaction/main.go:23:18: cannot use slackerInteractive (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
runner / staticcheck
[staticcheck] reported by reviewdog 🐶 # github.com/slack-io/slacker/examples/interaction-middleware examples/interaction-middleware/main.go:24:18: cannot use slackerInteractive (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal examples/interaction-middleware/main.go:68:10: cannot use func(ctx *slacker.InteractionContext) {…} (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in return statement examples/interaction-middleware/main.go:75:9: not enough arguments in call to next have (*slacker.InteractionContext) want (*slacker.InteractionContext, *socketmode.Request) Raw Output: {"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/slack-io/slacker/examples/interaction-middleware\nexamples/interaction-middleware/main.go:24:18: cannot use slackerInteractive (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal\nexamples/interaction-middleware/main.go:68:10: cannot use func(ctx *slacker.InteractionContext) {…} (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in return statement\nexamples/interaction-middleware/main.go:75:9: not enough arguments in call to next\n\thave (*slacker.InteractionContext)\n\twant (*slacker.InteractionContext, *socketmode.Request)","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
runner / staticcheck
[staticcheck] reported by reviewdog 🐶 # github.com/slack-io/slacker/examples/interaction-shortcut examples/interaction-shortcut/main.go:24:18: cannot use moodShortcutHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal examples/interaction-shortcut/main.go:30:18: cannot use moodShortcutHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal Raw Output: {"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/slack-io/slacker/examples/interaction-shortcut\nexamples/interaction-shortcut/main.go:24:18: cannot use moodShortcutHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal\nexamples/interaction-shortcut/main.go:30:18: cannot use moodShortcutHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
runner / staticcheck
[staticcheck] reported by reviewdog 🐶 # github.com/slack-io/slacker/examples/interaction-sink examples/interaction-sink/main.go:17:36: cannot use func(ctx *slacker.InteractionContext) {…} (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in argument to bot.UnsupportedInteractionHandler Raw Output: {"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/slack-io/slacker/examples/interaction-sink\nexamples/interaction-sink/main.go:17:36: cannot use func(ctx *slacker.InteractionContext) {…} (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in argument to bot.UnsupportedInteractionHandler","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
runner / staticcheck
[staticcheck] reported by reviewdog 🐶 # github.com/slack-io/slacker/examples/interaction-view examples/interaction-view/main.go:74:18: cannot use moodViewHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal examples/interaction-view/main.go:80:18: cannot use moodViewHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal Raw Output: {"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/slack-io/slacker/examples/interaction-view\nexamples/interaction-view/main.go:74:18: cannot use moodViewHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal\nexamples/interaction-view/main.go:80:18: cannot use moodViewHandler (value of type func(ctx *slacker.InteractionContext)) as slacker.InteractionHandler value in struct literal","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
runner / staticcheck
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/