Filenames
This rule attempts to enforce reasonable filenames for proto files, as mandated in AIP-191.
Details
Because proto filenames show up in client libraries (for example, as import paths), it is important not to have odd paths.
This rule currently complains if the filename:
- …is set to the proto version.
- …contains invalid cahracters.
Examples
Incorrect filenames for this rule:
v1.protov1beta1.protolibrary.service.protolibrary#.protolibrary$.protolibrary service.protolibrary_Service.proto
Correct filenames for this rule:
library.protolibrary_service.proto
Disabling
If you need to violate this rule, use a comment at the top of the file. Remember to also include an aip.dev/not-precedent comment explaining why.
// (-- api-linter: core::0191::filenames=disabled
// aip.dev/not-precedent: We need to do this because reasons. --)
syntax = "proto3";
View on GitHub