otterize / network-mapper

Map Kubernetes traffic: in-cluster, to the Internet, and to AWS IAM and export as text, intents, or an image
Apache License 2.0
612 stars 23 forks source link

Add golangci-lint workflow #51

Closed amitlicht closed 1 year ago

amitlicht commented 1 year ago

Description

Add golangci-lint workflow

amitlicht commented 1 year ago

@orishoshan I'd love your take on this - the linter fails here with the following error:

level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package pcap: could not load export data: no export data for \"github.com/google/gopacket/pcap\"\n\n"

I couldn't really figure out what's wrong with that package...

orishoshan commented 1 year ago

@amitlicht I think it's a wrapper for libpcap, which probably breaks the linter. Is it possible to add a skip rule for that package?