summaryrefslogtreecommitdiff
path: root/vendor/github.com/cilium/ebpf/.golangci.yaml
blob: dc62dd6d0fc7250d9f698c9c12f07fc48a803a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
issues:
  exclude-rules:
    # syscall param structs will have unused fields in Go code.
    - path: syscall.*.go
      linters:
        - structcheck

linters:
  disable-all: true
  enable:
    - deadcode
    - errcheck
    - goimports
    - gosimple
    - govet
    - ineffassign
    - misspell
    - staticcheck
    - structcheck
    - typecheck
    - unused
    - varcheck

    # Could be enabled later:
    # - gocyclo
    # - maligned
    # - gosec