summaryrefslogtreecommitdiff
path: root/vendor/github.com/cilium/ebpf/.golangci.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/cilium/ebpf/.golangci.yaml')
-rw-r--r--vendor/github.com/cilium/ebpf/.golangci.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/github.com/cilium/ebpf/.golangci.yaml b/vendor/github.com/cilium/ebpf/.golangci.yaml
new file mode 100644
index 000000000..dc62dd6d0
--- /dev/null
+++ b/vendor/github.com/cilium/ebpf/.golangci.yaml
@@ -0,0 +1,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