Skip to content
프로젝트

소개

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

프로그래밍 언어 및 런타임

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

protoc-gen-lint

Build Status Release License CodeQL OpenSSF Scorecard

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 is be helpful for use cases 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

Using 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

Downloading binary

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

Usage

protoc --lint_out=. *.proto

Optional Checks

Optional checks are enabled but passing a comma separated list to the protoc "parameter". Example:

protoc --lint_out=sort_imports:. *.proto

Available optional checks:

  • sort_imports - checks that imports are sorted in descending alphabetical order.

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

관련 프로젝트 살펴보기

불러오는 중…