Skip to content

✨ feat: arrutil - add new util func AnyToSlice(), CombineToM… #533

✨ feat: arrutil - add new util func AnyToSlice(), CombineToM…

✨ feat: arrutil - add new util func AnyToSlice(), CombineToM… #533

Triggered via push May 19, 2023 03:14
Status Failure
Total duration 1m 42s
Artifacts

go.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

36 errors and 30 warnings
Test on go 1.18 and windows-latest
Process completed with exit code 1.
[staticcheck] strutil/check.go#L263 <S1017>(https://staticcheck.io/docs/checks#S1017): strutil/check.go#L263
should replace this if statement with an unconditional strings.Replace
[staticcheck] strutil/check.go#L266 <S1017>(https://staticcheck.io/docs/checks#S1017): strutil/check.go#L266
should replace this if statement with an unconditional strings.Replace
[staticcheck] strutil/check.go#L302 <S1017>(https://staticcheck.io/docs/checks#S1017): strutil/check.go#L302
should replace this if statement with an unconditional strings.Replace
Test on go 1.18 and ubuntu-latest
The job was canceled because "windows-latest_1_18" failed.
Test on go 1.18 and ubuntu-latest
The operation was canceled.
Test on go 1.20 and windows-latest
The job was canceled because "windows-latest_1_18" failed.
Test on go 1.20 and windows-latest
The operation was canceled.
Test on go 1.19 and windows-latest
The job was canceled because "windows-latest_1_18" failed.
Test on go 1.19 and windows-latest
The operation was canceled.
Test on go 1.20 and ubuntu-latest
The job was canceled because "windows-latest_1_18" failed.
Test on go 1.20 and ubuntu-latest
The operation was canceled.
Test on go 1.19 and ubuntu-latest
The job was canceled because "windows-latest_1_18" failed.
Test on go 1.19 and ubuntu-latest
The operation was canceled.
Test on go 1.18 and ubuntu-latest: errorx/panics/assert.go#L1
should have a package comment
Test on go 1.18 and ubuntu-latest: netutil/httpheader/header.go#L1
should have a package comment
Test on go 1.18 and ubuntu-latest: netutil/httpheader/header.go#L4
exported const UserAgent should have comment (or a comment on this block) or be unexported
Test on go 1.18 and ubuntu-latest: strutil/textscan/tokens.go#L137
parameter 'ts' seems to be unused, consider removing or renaming it as _
Test on go 1.18 and ubuntu-latest: sysutil/user_nonwin.go#L21
func ChangeUserUidGid should be ChangeUserUIDGid
Test on go 1.18 and ubuntu-latest: sysutil/sysutil.go#L31
func parameter fileOrUrl should be fileOrURL
Test on go 1.18 and ubuntu-latest: testutil/httpmock.go#L44
func NewHttpRequest should be NewHTTPRequest
Test on go 1.18 and ubuntu-latest: netutil/httpctype/content_type.go#L4
exported const Key should have comment or be unexported
Test on go 1.18 and ubuntu-latest: sysutil/user_nonwin.go#L21
func parameter newUid should be newUID
Test on go 1.18 and ubuntu-latest: strutil/textscan/tokens.go#L142
parameter 'tok' seems to be unused, consider removing or renaming it as _
Test on go 1.20 and ubuntu-latest: netutil/httpctype/content_type.go#L4
exported const Key should have comment or be unexported
Test on go 1.20 and ubuntu-latest: netutil/httpheader/header.go#L1
should have a package comment
Test on go 1.20 and ubuntu-latest: netutil/httpheader/header.go#L4
exported const UserAgent should have comment (or a comment on this block) or be unexported
Test on go 1.20 and ubuntu-latest: maputil/format.go#L95
don't use leading k in Go names; var kStr should be str
Test on go 1.20 and ubuntu-latest: fsutil/finder/result.go#L27
parameter 'filterFuncs' seems to be unused, consider removing or renaming it as _
Test on go 1.20 and ubuntu-latest: sysutil/user_nonwin.go#L21
func ChangeUserUidGid should be ChangeUserUIDGid
Test on go 1.20 and ubuntu-latest: sysutil/sysutil.go#L31
func parameter fileOrUrl should be fileOrURL
Test on go 1.20 and ubuntu-latest: testutil/httpmock.go#L44
func NewHttpRequest should be NewHTTPRequest
Test on go 1.20 and ubuntu-latest: testutil/assert/assertions_methods.go#L3
exported method Assertions.Nil should have comment or be unexported
Test on go 1.20 and ubuntu-latest: errorx/panics/assert.go#L1
should have a package comment
Test on go 1.19 and ubuntu-latest: netutil/httpheader/header.go#L4
exported const UserAgent should have comment (or a comment on this block) or be unexported
Test on go 1.19 and ubuntu-latest: netutil/httpheader/header.go#L1
should have a package comment
Test on go 1.19 and ubuntu-latest: strutil/textscan/tokens.go#L137
parameter 'ts' seems to be unused, consider removing or renaming it as _
Test on go 1.19 and ubuntu-latest: testutil/httpmock.go#L44
func NewHttpRequest should be NewHTTPRequest
Test on go 1.19 and ubuntu-latest: testutil/assert/assertions_methods.go#L3
exported method Assertions.Nil should have comment or be unexported
Test on go 1.19 and ubuntu-latest: fsutil/finder/result.go#L27
parameter 'filterFuncs' seems to be unused, consider removing or renaming it as _
Test on go 1.19 and ubuntu-latest: fsutil/finder/finder.go#L15
exported const ExDotFile should have comment (or a comment on this block) or be unexported
Test on go 1.19 and ubuntu-latest: netutil/httpctype/content_type.go#L4
exported const Key should have comment or be unexported
Test on go 1.19 and ubuntu-latest: maputil/format.go#L95
don't use leading k in Go names; var kStr should be str
Test on go 1.19 and ubuntu-latest: strutil/textscan/tokens.go#L142
parameter 'tok' seems to be unused, consider removing or renaming it as _