breakingv1

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetExceptIds

func (x *Config) GetExceptIds() []string

func (*Config) GetIgnoreIdPaths

func (x *Config) GetIgnoreIdPaths() []*IDPaths

func (*Config) GetIgnorePaths

func (x *Config) GetIgnorePaths() []string

func (*Config) GetIgnoreUnstablePackages

func (x *Config) GetIgnoreUnstablePackages() bool

func (*Config) GetUseIds

func (x *Config) GetUseIds() []string

func (*Config) GetVersion

func (x *Config) GetVersion() string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use IDPaths.ProtoReflect.Descriptor instead.

func (*IDPaths) GetId

func (x *IDPaths) GetId() string

func (*IDPaths) GetPaths

func (x *IDPaths) GetPaths() []string

func (*IDPaths) ProtoMessage

func (*IDPaths) ProtoMessage()

func (*IDPaths) ProtoReflect

func (x *IDPaths) ProtoReflect() protoreflect.Message

func (*IDPaths) Reset

func (x *IDPaths) Reset()

func (*IDPaths) String

func (x *IDPaths) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL