All Projects → ckaznocha → Protoc Gen Lint

ckaznocha / Protoc Gen Lint

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

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Protoc Gen Lint

Protolint
A pluggable linter and fixer to enforce Protocol Buffer style and conventions.
Stars: ✭ 142 (-35.75%)
Mutual labels:  linter, lint, protobuf, protocol-buffers
D Scanner
Swiss-army knife for D source code
Stars: ✭ 221 (+0%)
Mutual labels:  static-analysis, linter, lint
Cflint
Static code analysis for CFML (a linter)
Stars: ✭ 156 (-29.41%)
Mutual labels:  static-analysis, linter, lint
mllint
`mllint` is a command-line utility to evaluate the technical quality of Python Machine Learning (ML) projects by means of static analysis of the project's repository.
Stars: ✭ 67 (-69.68%)
Mutual labels:  lint, linter, static-analysis
Woke
✊ Detect non-inclusive language in your source code.
Stars: ✭ 190 (-14.03%)
Mutual labels:  static-analysis, linter, lint
pahout
A pair programming partner for writing better PHP. Pahout means PHP mahout 🐘
Stars: ✭ 43 (-80.54%)
Mutual labels:  lint, linter, static-analysis
lints
Lint all your JavaScript, CSS, HTML, Markdown and Dockerfiles with a single command
Stars: ✭ 14 (-93.67%)
Mutual labels:  lint, linter, static-analysis
Reviewdog
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
Stars: ✭ 4,541 (+1954.75%)
Mutual labels:  static-analysis, linter, lint
Exakat
The Exakat Engine : smart static analysis for PHP
Stars: ✭ 346 (+56.56%)
Mutual labels:  static-analysis, linter, lint
Detekt
Static code analysis for Kotlin
Stars: ✭ 4,169 (+1786.43%)
Mutual labels:  linter, lint, static-analysis
Njsscan
njsscan is a semantic aware SAST tool that can find insecure code patterns in your Node.js applications.
Stars: ✭ 128 (-42.08%)
Mutual labels:  static-analysis, linter, lint
Clippy Check
📎 GitHub Action for PR annotations with clippy warnings
Stars: ✭ 159 (-28.05%)
Mutual labels:  linter, lint
Textlint
The pluggable natural language linter for text and markdown.
Stars: ✭ 2,158 (+876.47%)
Mutual labels:  linter, lint
Misspell Fixer
Simple tool for fixing common misspellings, typos in source code
Stars: ✭ 154 (-30.32%)
Mutual labels:  linter, lint
Ue4 Style Guide
An attempt to make Unreal Engine 4 projects more consistent
Stars: ✭ 2,656 (+1101.81%)
Mutual labels:  linter, lint
Sbt Protobuf
sbt plugin for compiling protobuf files
Stars: ✭ 163 (-26.24%)
Mutual labels:  protobuf, protocol-buffers
Protofuzz
Google Protocol Buffers message generator
Stars: ✭ 171 (-22.62%)
Mutual labels:  protobuf, protocol-buffers
Protoc Jar Maven Plugin
Protocol Buffers protobuf maven plugin - based on protoc-jar multi-platform executable protoc JAR
Stars: ✭ 177 (-19.91%)
Mutual labels:  protobuf, protocol-buffers
Go Grpc Examples
This repo contains examples and implementations of different types of GRPC services and APIs using Golang.
Stars: ✭ 180 (-18.55%)
Mutual labels:  protobuf, protocol-buffers
Go Micro Boilerplate
The boilerplate of the GoLang application with a clear microservices architecture.
Stars: ✭ 147 (-33.48%)
Mutual labels:  protobuf, protocol-buffers

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 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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].