Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetExceptIds() []string
- func (x *Config) GetIgnoreIdPaths() []*IDPaths
- func (x *Config) GetIgnorePaths() []string
- func (x *Config) GetIgnoreUnstablePackages() bool
- func (x *Config) GetUseIds() []string
- func (x *Config) GetVersion() string
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type IDPaths
Constants ¶
This section is empty.
Variables ¶
var File_buf_alpha_breaking_v1_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // version represents the version of the breaking change rule and category IDs that should be used with this config. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // use_ids lists the rule and/or category IDs that are included in the breaking change check. UseIds []string `protobuf:"bytes,2,rep,name=use_ids,json=useIds,proto3" json:"use_ids,omitempty"` // except_ids lists the rule and/or category IDs that are excluded from the breaking change check. ExceptIds []string `protobuf:"bytes,3,rep,name=except_ids,json=exceptIds,proto3" json:"except_ids,omitempty"` // ignore_paths lists the paths of directories and/or files that should be ignored by the breaking change check. // All paths are relative to the root of the module. IgnorePaths []string `protobuf:"bytes,4,rep,name=ignore_paths,json=ignorePaths,proto3" json:"ignore_paths,omitempty"` // ignore_id_paths is a map of rule and/or category IDs to directory and/or file paths to exclude from the // breaking change check. This corresponds with the ignore_only configuration key. IgnoreIdPaths []*IDPaths `protobuf:"bytes,5,rep,name=ignore_id_paths,json=ignoreIdPaths,proto3" json:"ignore_id_paths,omitempty"` // ignore_unstable_packages ignores packages with a last component that is one of the unstable forms recognised // by the PACKAGE_VERSION_SUFFIX: // v\d+test.* // v\d+(alpha|beta)\d+ // v\d+p\d+(alpha|beta)\d+ IgnoreUnstablePackages bool `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
Config represents the breaking change configuration for a module. The rule and category IDs are defined by the version and apply across the config. The version is independent of the version of the package. The package version refers to the config shape, the version encoded in the Config message indicates which rule and category IDs should be used.
The rule and category IDs are not encoded as enums in this package because we may want to support custom rule and category IDs in the future. Callers will need to resolve the rule and category ID strings.
func (*Config) Descriptor
deprecated
func (*Config) GetExceptIds ¶
func (*Config) GetIgnoreIdPaths ¶
func (*Config) GetIgnorePaths ¶
func (*Config) GetIgnoreUnstablePackages ¶
func (*Config) GetVersion ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type IDPaths ¶
type IDPaths struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"` // contains filtered or unexported fields }
IDPaths represents a rule or category ID and the file and/or directory paths that are ignored for the rule.
func (*IDPaths) Descriptor
deprecated
func (*IDPaths) ProtoMessage ¶
func (*IDPaths) ProtoMessage()
func (*IDPaths) ProtoReflect ¶
func (x *IDPaths) ProtoReflect() protoreflect.Message