Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix golangci-lint (final) #391

Merged
merged 1 commit into from
Dec 17, 2021
Merged

Conversation

osinstom
Copy link
Contributor

This is the final PR fixing the golangci-lint job and finally closes #382.

This PR:

  • replaces deprecated grpc.WithInsecure with grpc.WithTransportCredentials(insecure.NewCredentials())
  • disables gosec for current calls of math/rand functions. We don't need strong random number generator for allocating IDs for P4 or PFCP objects.
  • disables staticcheck for the proto package. Upgrading to google.golang.org/protobuf/proto is not a drop-in replacement, as also P4Runtime stubs are based on the deprecated proto. I noticed that this is a practice being used by, e.g. Prometheus.

@osinstom osinstom self-assigned this Dec 17, 2021
@krsna1729 krsna1729 merged commit 6b1e5c1 into omec-project:master Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make golangci lint pass
2 participants