Skip to content

支持设置全局HTTPClient #977

支持设置全局HTTPClient

支持设置全局HTTPClient #977

Triggered via pull request December 28, 2023 13:57
Status Failure
Total duration 53s
Artifacts

go.yml

on: pull_request
Matrix: Test
Matrix: golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

35 errors and 6 warnings
golangci-lint (1.19): wechat.go#L4
File is not `goimports`-ed (goimports)
golangci-lint (1.19): util/http.go#L25
exported var `DefaultHTTPClient` should have comment or be unexported (golint)
golangci-lint (1.19): wechat.go#L87
exported method `Wechat.SetHttpClient` should have comment or be unexported (golint)
golangci-lint (1.19)
issues found
golangci-lint (1.18)
The job was canceled because "_1_19" failed.
golangci-lint (1.18): wechat.go#L4
File is not `goimports`-ed (goimports)
golangci-lint (1.18): util/http.go#L25
exported var `DefaultHTTPClient` should have comment or be unexported (golint)
golangci-lint (1.18): wechat.go#L87
exported method `Wechat.SetHttpClient` should have comment or be unexported (golint)
golangci-lint (1.18)
issues found
golangci-lint (1.21)
The job was canceled because "_1_19" failed.
golangci-lint (1.21): internal/openapi/mgnt.go#L95
previous case (typecheck)
golangci-lint (1.21): internal/openapi/mgnt.go#L109
previous case (typecheck)
golangci-lint (1.21): miniprogram/analysis/analysis.go#L48
analysis.GetAccessToken undefined (type *Analysis has no field or method GetAccessToken) (typecheck)
golangci-lint (1.21): miniprogram/analysis/analysis.go#L85
result.ErrCode undefined (type ResAnalysisRetain has no field or method ErrCode) (typecheck)
golangci-lint (1.21): miniprogram/analysis/analysis.go#L86
result.ErrCode undefined (type ResAnalysisRetain has no field or method ErrCode) (typecheck)
golangci-lint (1.21): miniprogram/analysis/analysis.go#L133
result.ErrCode undefined (type ResAnalysisDailySummary has no field or method ErrCode) (typecheck)
golangci-lint (1.21): miniprogram/analysis/analysis.go#L134
result.ErrCode undefined (type ResAnalysisDailySummary has no field or method ErrCode) (typecheck)
golangci-lint (1.21): miniprogram/analysis/analysis.go#L169
result.ErrCode undefined (type ResAnalysisVisitTrend has no field or method ErrCode) (typecheck)
golangci-lint (1.21): miniprogram/analysis/analysis.go#L170
result.ErrCode undefined (type ResAnalysisVisitTrend has no field or method ErrCode) (typecheck)
golangci-lint (1.21): miniprogram/analysis/analysis.go#L231
result.ErrCode undefined (type ResAnalysisUserPortrait has no field or method ErrCode) (typecheck)
golangci-lint (1.16)
The job was canceled because "_1_19" failed.
golangci-lint (1.16): wechat.go#L4
File is not `goimports`-ed (goimports)
golangci-lint (1.16): util/http.go#L25
exported var `DefaultHTTPClient` should have comment or be unexported (golint)
golangci-lint (1.16): wechat.go#L87
exported method `Wechat.SetHttpClient` should have comment or be unexported (golint)
golangci-lint (1.16)
issues found
golangci-lint (1.17)
The job was canceled because "_1_19" failed.
golangci-lint (1.17): wechat.go#L4
File is not `goimports`-ed (goimports)
golangci-lint (1.17): util/http.go#L25
exported var `DefaultHTTPClient` should have comment or be unexported (golint)
golangci-lint (1.17): wechat.go#L87
exported method `Wechat.SetHttpClient` should have comment or be unexported (golint)
golangci-lint (1.17)
issues found
golangci-lint (1.20)
The job was canceled because "_1_19" failed.
golangci-lint (1.20): wechat.go#L4
File is not `goimports`-ed (goimports)
golangci-lint (1.20): util/http.go#L25
exported var `DefaultHTTPClient` should have comment or be unexported (golint)
golangci-lint (1.20): wechat.go#L87
exported method `Wechat.SetHttpClient` should have comment or be unexported (golint)
golangci-lint (1.20)
issues found
golangci-lint (1.19)
Restore cache failed: Dependencies file is not found in /home/runner/work/wechat/wechat. Supported file pattern: go.sum
golangci-lint (1.18)
Restore cache failed: Dependencies file is not found in /home/runner/work/wechat/wechat. Supported file pattern: go.sum
golangci-lint (1.21)
Restore cache failed: Dependencies file is not found in /home/runner/work/wechat/wechat. Supported file pattern: go.sum
golangci-lint (1.16)
Restore cache failed: Dependencies file is not found in /home/runner/work/wechat/wechat. Supported file pattern: go.sum
golangci-lint (1.17)
Restore cache failed: Dependencies file is not found in /home/runner/work/wechat/wechat. Supported file pattern: go.sum
golangci-lint (1.20)
Restore cache failed: Dependencies file is not found in /home/runner/work/wechat/wechat. Supported file pattern: go.sum