Skip to content

iwittkau/proto-golint

Repository files navigation

proto-golint

Linter for Go code that uses protobuf messages.

Getters

Reports reading fields of proto message structs without the getter:

internal/test/proto.go:33:3: getters: proto message field read without getter: t.Embedded (proto-golint)
                t.Embedded,

Supports --fix flag to apply the suggested fix directly.

Why?

This is mostly a fun project to learn how to write a linter for Go. Fatih Arslan's blog was a tremendous help in doing that!

About

Linter for correct usage of protobuf generated messages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published