refactor: using slices.Contains to simplify the code #13929
reviewdog.yml
on: pull_request
reviewdog-errors
1m 59s
reviewdog-warnings
2m 58s
reviewdog-shellcheck
12s
Annotations
6 errors and 4 warnings
reviewdog-errors:
cmd/goal/account.go#L1
[Lint Errors] reported by reviewdog 🐶
: # github.com/algorand/go-algorand/cmd/goal [github.com/algorand/go-algorand/cmd/goal.test]
Raw Output:
cmd/goal/account.go:1: : # github.com/algorand/go-algorand/cmd/goal [github.com/algorand/go-algorand/cmd/goal.test]
|
reviewdog-errors:
cmd/goal/accountsList.go#L105
[Lint Errors] reported by reviewdog 🐶
in call to slices.Contains, S (type map[string]string) does not satisfy ~[]E (typecheck)
Raw Output:
cmd/goal/accountsList.go:105:24: in call to slices.Contains, S (type map[string]string) does not satisfy ~[]E (typecheck)
// Copyright (C) 2019-2025 Algorand, Inc.
|
reviewdog-errors
reviewdog exited with status code: 1
|
reviewdog-warnings:
cmd/goal/accountsList.go#L105
in call to slices.Contains, S (type map[string]string) does not satisfy ~[]E (typecheck)
|
reviewdog-warnings:
cmd/goal/accountsList.go#L105
[Lint Warnings] reported by reviewdog 🐶
in call to slices.Contains, S (type map[string]string) does not satisfy ~[]E (typecheck)
Raw Output:
cmd/goal/accountsList.go:105:24: in call to slices.Contains, S (type map[string]string) does not satisfy ~[]E (typecheck)
// Copyright (C) 2019-2025 Algorand, Inc.
|
reviewdog-warnings
Process completed with exit code 1.
|
reviewdog-warnings
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v3.3.1. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
reviewdog-shellcheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
reviewdog-errors
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
reviewdog-warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|