Skip to content

👔 up: maputil - fix a method name error, add tests for MergeM… #347

👔 up: maputil - fix a method name error, add tests for MergeM…

👔 up: maputil - fix a method name error, add tests for MergeM… #347

GitHub Actions / staticcheck failed Dec 5, 2023 in 1s

reviewdog [staticcheck] report

reported by reviewdog 🐶

Findings (3)

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

Filtered Findings (0)

Annotations

Check failure on line 100 in envutil/envutil_test.go

See this annotation in the file changed.

@github-actions github-actions / staticcheck

[staticcheck] envutil/envutil_test.go#L100 <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":100,"column":11}}},"severity":"ERROR"}

Check failure on line 15 in reflects/reflects.go

See this annotation in the file changed.

@github-actions github-actions / staticcheck

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

var fmtStringerType is unused
Raw output
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"var fmtStringerType is unused","code":{"value":"U1000","url":"https://staticcheck.io/docs/checks#U1000"},"location":{"path":"/home/runner/work/goutil/goutil/reflects/reflects.go","range":{"start":{"line":15,"column":2}}},"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"}