Skip to content

Issue 191

Issue 191 #110

Triggered via pull request December 27, 2023 10:25
Status Failure
Total duration 21s
Artifacts

validate-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 5 warnings
lint: go/src/github.com/cooperspencer/gickup/metrics/gotify/gotify.go#L10
import 'github.com/cooperspencer/gickup/types' is not allowed from list 'Main' (depguard)
lint: go/src/github.com/cooperspencer/gickup/metrics/gotify/gotify.go#L29
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
lint: go/src/github.com/cooperspencer/gickup/metrics/ntfy/ntfy.go#L21
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: go/src/github.com/cooperspencer/gickup/metrics/ntfy/ntfy.go#L30
File is not `gofumpt`-ed (gofumpt)
lint: go/src/github.com/cooperspencer/gickup/metrics/ntfy/ntfy.go#L8
import 'github.com/cooperspencer/gickup/types' is not allowed from list 'Main' (depguard)
lint: go/src/github.com/cooperspencer/gickup/metrics/ntfy/ntfy.go#L16
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
lint: go/src/github.com/cooperspencer/gickup/metrics/prometheus/prometheus.go#L70
G114: Use of net/http serve function that has no support for setting timeouts (gosec)
lint: go/src/github.com/cooperspencer/gickup/metrics/prometheus/prometheus.go#L6
import 'github.com/cooperspencer/gickup/types' is not allowed from list 'Main' (depguard)
lint: go/src/github.com/cooperspencer/gickup/metrics/prometheus/prometheus.go#L7
import 'github.com/prometheus/client_golang/prometheus' is not allowed from list 'Main' (depguard)
lint: go/src/github.com/cooperspencer/gickup/metrics/prometheus/prometheus.go#L8
import 'github.com/prometheus/client_golang/prometheus/promauto' is not allowed from list 'Main' (depguard)
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-go@v2, actions/checkout@v2, actions/cache@v2, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint: go/src/github.com/cooperspencer/gickup/local/local.go#L467
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
lint: go/src/github.com/cooperspencer/gickup/local/local.go#L181
superfluous-else: if block ends with a break statement, so drop this else and outdent its block (revive)