Skip to content

Intrinsec/protoc-gen-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Protoc Gen Checker

Protoc plugin to execute checks and rules.

This project uses protoc-gen-star to ease code generation.

How to use it

See ./tests/incident.proto for example on how to use it.

Options

The plugin supports the following options.

Entities having options to disable the validation MUST have a reason explaining why. This reason MUST be given in a leading comments starting with // No Validation Reason: .

At file level

disable_file_validate: indicates the plugin should not check if validation is correctly setup on the file.

At message level

No specific option are defined since protoc-gen-validate already has option to disable/ignore the validation. The plugin check these options to know what to do.

At field level

disable_field_validate: indicates the validation is disabled on the field.

Tests

Do a make test to run the plugin on some examples proto files. This test is supposed to fail because it illustrate various wrong ways of using the plugin.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors