iwittkau / proto-golint

Linter for correct usage of protobuf generated messages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 77.8%Language:Makefile 22.2%