Skip to content

Add linters to makefile/github actions #10

Add linters to makefile/github actions

Add linters to makefile/github actions #10

Re-run triggered July 29, 2023 23:42
Status Failure
Total duration 29s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 3 warnings
lint: git-sync/main.go#L480
Error return value of `pflag.CommandLine.MarkDeprecated` is not checked (errcheck)
lint: git-sync/main.go#L483
Error return value of `pflag.CommandLine.MarkDeprecated` is not checked (errcheck)
lint: git-sync/main.go#L486
Error return value of `pflag.CommandLine.MarkDeprecated` is not checked (errcheck)
lint: git-sync/main.go#L1897
Error return value of `io.WriteString` is not checked (errcheck)
lint: git-sync/main.go#L555
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: git-sync/pkg/pid1/pid1.go#L72
ST1005: error strings should not end with punctuation or newlines (stylecheck)
lint: git-sync/pkg/pid1/pid1.go#L86
ST1005: error strings should not end with punctuation or newlines (stylecheck)
lint
issues found
build
Restore cache failed: Dependencies file is not found in /home/runner/work/git-sync/git-sync. Supported file pattern: go.sum
test
Restore cache failed: Dependencies file is not found in /home/runner/work/git-sync/git-sync. Supported file pattern: go.sum
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/git-sync/git-sync. Supported file pattern: go.sum