Skip to content

CI: specifying checks in .golangci.yaml for staticcheck disables all default checks #40197

@mtardy

Description

@mtardy

I was trying to see what happens when you specify a new checks list for Tetragon, and it override the default from here https://golangci-lint.run/usage/linters/#staticcheck. Thus in your config you skip all the default stuff and only run ST1019. I imagine it's not intended.

cilium/.golangci.yaml

Lines 107 to 109 in 260af0e

staticcheck:
checks:
- ST1019

See https://staticcheck.dev/docs/configuration/options/#checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/CIContinuous Integration testing issue or flakehelp-wantedPlease volunteer for this by adding yourself as an assignee!

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions