Skip to content

A plug-in for Google's Protocol Buffers (protobufs) compiler to lint .proto files for style violations.

License

Notifications You must be signed in to change notification settings

niravmsh/protoc-gen-lint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protoc-gen-lint

Build Status Release License

A plug-in for Google's Protocol Buffers compiler to check .proto files for style violations.

About

This plug-in will check a .proto file for violations of Google's Protocol Buffer Style Guide. The protobuf compiler already reports on compilation errors; by using this plug-in you are also able to retrieve those compilation error without writing any file which could be helpful for things like IDE integrations.

Installation

Download protoc-gen-lint and make sure it's available in your PATH. Once it's in your PATH, protoc will be able to make use of the plug-in.

Dependencies

You must have a working version of Google's Protocol Buffers compiler protoc in your PATH. You can download it here

go get

If you have a go environment already set up you can use go get to install.

go get github.com/ckaznocha/protoc-gen-lint

Download

Download the latest release for your operating system here and ensure the executable is available in your PATH.

Usage

protoc --lint_out=. *.proto

TODO

  • Write more tests
  • Find out about any common protocol buffer smells to check for from the community

Contributing

See the CONTRIBUTING file.

License

See LICENSE file

About

A plug-in for Google's Protocol Buffers (protobufs) compiler to lint .proto files for style violations.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 83.0%
  • Protocol Buffer 17.0%