Skip to content

✅ ci: fix ci test error and add test on go1.22 #735

✅ ci: fix ci test error and add test on go1.22

✅ ci: fix ci test error and add test on go1.22 #735

GitHub Actions / staticcheck failed Mar 24, 2024 in 0s

reviewdog [staticcheck] report

reported by reviewdog 🐶

Findings (2)

envutil/envutil_test.go|102 col 11| variadic argument "kvPairs" is expected to have even number of elements, but has 3 elements
reflects/util.go|13 col 6| func loopIndirect is unused

Filtered Findings (0)

Annotations

Check failure on line 102 in envutil/envutil_test.go

See this annotation in the file changed.

@github-actions github-actions / staticcheck

[staticcheck] envutil/envutil_test.go#L102 <SA5012>(https://staticcheck.io/docs/checks#SA5012)

variadic argument "kvPairs" is expected to have even number of elements, but has 3 elements
Raw output
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"variadic argument \"kvPairs\" is expected to have even number of elements, but has 3 elements","code":{"value":"SA5012","url":"https://staticcheck.io/docs/checks#SA5012"},"location":{"path":"/home/runner/work/goutil/goutil/envutil/envutil_test.go","range":{"start":{"line":102,"column":11}}},"severity":"ERROR"}

Check failure on line 13 in reflects/util.go

See this annotation in the file changed.

@github-actions github-actions / staticcheck

[staticcheck] reflects/util.go#L13 <U1000>(https://staticcheck.io/docs/checks#U1000)

func loopIndirect is unused
Raw output
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"func loopIndirect is unused","code":{"value":"U1000","url":"https://staticcheck.io/docs/checks#U1000"},"location":{"path":"/home/runner/work/goutil/goutil/reflects/util.go","range":{"start":{"line":13,"column":6}}},"severity":"ERROR"}