class

Detector::Specification::Grpc

Inherits Detector < Reference < Object

Constants

SERVICE_BLOCK = /\bservice\s+\w+\s*\{/

A gRPC service is defined by a service Name { ... } block. Matching that structural marker — rather than the bare substrings "service"/"rpc", which also occur in ordinary field names like service_url or rpc_timeout — keeps message-only and config .proto files from being mislabeled as gRPC.

Instance methods

applicable?(filename : String) : Bool

Records every matching .proto path in CodeLocator for the analyzer pass. Must keep running after the first match so all service files get registered.

Source
detect(filename : String, file_contents : String) : Bool
Source
idempotent?

Records every matching .proto path in CodeLocator for the analyzer pass. Must keep running after the first match so all service files get registered.

Source
name

Records every matching .proto path in CodeLocator for the analyzer pass. Must keep running after the first match so all service files get registered.

Source