Skip to content

REFACTOR: [xalign] refactor detector #4269

REFACTOR: [xalign] refactor detector

REFACTOR: [xalign] refactor detector #4269

Triggered via pull request December 3, 2024 10:36
Status Success
Total duration 1m 46s
Artifacts

golang-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint: pkg/strategy/autoborrow/strategy.go#L125
invalid operation: s.MarginRepayAlert != nil (mismatched types struct{Slack *slackalert.SlackAlert "json:\"slack,omitempty\""} and untyped nil)
lint: pkg/strategy/autoborrow/strategy.go#L130
s.MarginRepayAlert.Mentions undefined (type struct{Slack *slackalert.SlackAlert "json:\"slack,omitempty\""} has no field or method Mentions)
lint: pkg/strategy/autoborrow/strategy.go#L234
invalid operation: s.MarginRepayAlert != nil (mismatched types struct{Slack *slackalert.SlackAlert "json:\"slack,omitempty\""} and untyped nil)
lint: pkg/strategy/autoborrow/strategy.go#L239
s.MarginRepayAlert.Mentions undefined (type struct{Slack *slackalert.SlackAlert "json:\"slack,omitempty\""} has no field or method Mentions) (typecheck)
lint: pkg/cmd/strategy/builtin.go#L7
could not import github.com/c9s/bbgo/pkg/strategy/autoborrow (-: # github.com/c9s/bbgo/pkg/strategy/autoborrow
lint: pkg/strategy/autoborrow/strategy.go#L125
invalid operation: s.MarginRepayAlert != nil (mismatched types struct{Slack *slackalert.SlackAlert "json:\"slack,omitempty\""} and untyped nil)
lint: pkg/strategy/autoborrow/strategy.go#L130
s.MarginRepayAlert.Mentions undefined (type struct{Slack *slackalert.SlackAlert "json:\"slack,omitempty\""} has no field or method Mentions)
lint: pkg/strategy/autoborrow/strategy.go#L234
invalid operation: s.MarginRepayAlert != nil (mismatched types struct{Slack *slackalert.SlackAlert "json:\"slack,omitempty\""} and untyped nil)
lint: pkg/strategy/autoborrow/strategy.go#L239
s.MarginRepayAlert.Mentions undefined (type struct{Slack *slackalert.SlackAlert "json:\"slack,omitempty\""} has no field or method Mentions)) (typecheck)
lint: cmd/bbgo-webview/main.go#L14
could not import github.com/webview/webview (-: go build github.com/webview/webview:
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636