class

Detector::Specification::Thrift

Inherits Detector < Reference < Object

Constants

SERVICE_BLOCK = /\bservice\s+[A-Za-z_][\w.]*\s*(?:extends\s+[A-Za-z_][\w.]*\s*)?\{/

A Thrift RPC surface is a service Name [extends Base] { block. The bare word "service" also turns up in field names (1: string service) and doc comments, so only the structural header counts, and only once comments are blanked — a struct-only or commented-out file is not one.

Instance methods

applicable?(filename : String) : Bool

Records every .thrift file that defines a service 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 .thrift file that defines a service in CodeLocator for the analyzer pass. Must keep running after the first match so all service files get registered.

Source
name

Records every .thrift file that defines a service in CodeLocator for the analyzer pass. Must keep running after the first match so all service files get registered.

Source