Documentation
¶
Overview ¶
Package lint detects breaking changes between two versions of pbflags proto definitions.
Index ¶
Constants ¶
View Source
const ( RuleTypeChanged = "type_changed" RuleLayerChanged = "layer_changed" )
Rule names.
Variables ¶
This section is empty.
Functions ¶
func BuildDescriptors ¶
BuildDescriptors builds a FileDescriptorSet from the proto files in protoDir (working tree). Returns the serialized bytes.
func BuildDescriptorsFromRef ¶
BuildDescriptorsFromRef builds a FileDescriptorSet from the proto files at the given git ref. Extracts the proto directory from the ref into a temp directory, then runs buf build.
func HasProtoChanges ¶
HasProtoChanges returns true if any .proto files in protoDir differ between the given git ref and the working tree.
Types ¶
type Violation ¶
type Violation struct {
FlagID string // e.g., "notifications/1"
Rule string // machine-readable rule name
Message string // human-readable description
Guidance string // suggested fix
}
Violation represents a breaking change detected between two versions of flag definitions.
Click to show internal directories.
Click to hide internal directories.