Skip to content

Chore: refine lint

Chore: refine lint #2

Triggered via pull request September 14, 2023 09:08
Status Failure
Total duration 40s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 10 warnings
lint: option/watch.go#L17
File is not `goimports`-ed with -local github.com/TencentBlueKing/bscp-go (goimports)
lint: cli/util/hook_test.go#L23
File is not `goimports`-ed with -local github.com/TencentBlueKing/bscp-go (goimports)
lint: watch/heartbeat.go#L23
File is not `goimports`-ed with -local github.com/TencentBlueKing/bscp-go (goimports)
lint: watch/reconnect.go#L21
File is not `goimports`-ed with -local github.com/TencentBlueKing/bscp-go (goimports)
lint: watch/watch.go#L28
File is not `goimports`-ed with -local github.com/TencentBlueKing/bscp-go (goimports)
lint: cli/cmd/common.go#L20
File is not `goimports`-ed with -local github.com/TencentBlueKing/bscp-go (goimports)
lint: cli/main.go#L17
File is not `goimports`-ed with -local github.com/TencentBlueKing/bscp-go (goimports)
lint
issues found
lint: cli/constant/constant.go#L17
exported: comment on exported const DefaultTempDir should be of the form "DefaultTempDir ..." (revive)
lint: downloader/downloader.go#L49
exported: exported type DownloadTo should have comment or be unexported (revive)
lint: downloader/downloader.go#L54
exported: exported var DownloadToBytes should have comment or be unexported (revive)
lint: cache/cache.go#L32
exported: exported var Enable should have comment or be unexported (revive)
lint: types/types.go#L39
exported: exported type OnAppReleaseChange should have comment or be unexported (revive)
lint: option/watch.go#L35
exported: comment on exported type Callback should be of the form "Callback ..." (with optional leading article) (revive)
lint: cli/util/hook.go#L33
exported: comment on exported const EnvAppTempDir should be of the form "EnvAppTempDir ..." (revive)
lint: cli/util/hook.go#L38
exported: comment on exported const EnvBiz should be of the form "EnvBiz ..." (revive)
lint: cli/cmd/watch.go#L41
exported: exported var WatchCmd should have comment or be unexported (revive)
lint: cli/cmd/pull.go#L35
exported: exported var PullCmd should have comment or be unexported (revive)