Skip to content

add github action for linter #2

add github action for linter

add github action for linter #2

Triggered via pull request May 10, 2024 07:16
Status Failure
Total duration 2m 50s
Artifacts

ci.yml

on: pull_request
Matrix: pull-nauti-golang-ci
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 2 warnings
pull-nauti-golang-ci (1.22.x, ubuntu-latest)
Error return value of `(k8s.io/client-go/tools/cache.SharedInformer).AddEventHandler` is not checked (errcheck)
pull-nauti-golang-ci (1.22.x, ubuntu-latest)
Error return value of `(k8s.io/client-go/tools/cache.SharedInformer).AddEventHandler` is not checked (errcheck)
pull-nauti-golang-ci (1.22.x, ubuntu-latest)
Error return value of `(k8s.io/client-go/tools/cache.SharedInformer).AddEventHandler` is not checked (errcheck)
pull-nauti-golang-ci (1.22.x, ubuntu-latest)
string `true` has 3 occurrences, make it a constant (goconst)
pull-nauti-golang-ci (1.22.x, ubuntu-latest)
commentFormatting: put a space between `//` and comment text (gocritic)
pull-nauti-golang-ci (1.22.x, ubuntu-latest)
ifElseChain: rewrite if-else to switch statement (gocritic)
pull-nauti-golang-ci (1.22.x, ubuntu-latest)
commentFormatting: put a space between `//` and comment text (gocritic)
pull-nauti-golang-ci (1.22.x, ubuntu-latest)
commentFormatting: put a space between `//` and comment text (gocritic)
pull-nauti-golang-ci (1.22.x, ubuntu-latest)
captLocal: `CIDRs' should not be capitalized (gocritic)
pull-nauti-golang-ci (1.22.x, ubuntu-latest)
G101: Potential hardcoded credentials (gosec)
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
The job was canceled because "_1_22_x_ubuntu-latest" failed.
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
Error return value of `(k8s.io/client-go/tools/cache.SharedInformer).AddEventHandler` is not checked (errcheck)
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
Error return value of `(k8s.io/client-go/tools/cache.SharedInformer).AddEventHandler` is not checked (errcheck)
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
Error return value of `(k8s.io/client-go/tools/cache.SharedInformer).AddEventHandler` is not checked (errcheck)
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
string `true` has 3 occurrences, make it a constant (goconst)
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
commentFormatting: put a space between `//` and comment text (gocritic)
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
ifElseChain: rewrite if-else to switch statement (gocritic)
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
commentFormatting: put a space between `//` and comment text (gocritic)
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
commentFormatting: put a space between `//` and comment text (gocritic)
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
captLocal: `CIDRs' should not be capitalized (gocritic)
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
G101: Potential hardcoded credentials (gosec)
pull-nauti-golang-ci (1.22.x, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/nauti/nauti. Supported file pattern: go.sum
pull-nauti-golang-ci (1.21.x, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/nauti/nauti. Supported file pattern: go.sum