{"modulePath":"github.com/haproxytech/check-commit/v5","version":"v5.8.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Constants\n\n```go\nconst (\n\tMINSUBJECTPARTS = 3\n\tMAXSUBJECTPARTS = 15\n\tMINSUBJECTLEN   = 15\n\tMAXSUBJECTLEN   = 100\n\n\tGITHUB = \"Github\"\n\tGITLAB = \"Gitlab\"\n\tLOCAL  = \"local\"\n)\n```\n\n## Variables\n\n```go\nvar ErrGitEnvironment = errors.New(\"git environment error\")\n```\n\n```go\nvar ErrSubjectList = errors.New(\"subjects contain errors\")\n```\n\n```go\nvar ErrSubjectMessageFormat = errors.New(\"invalid subject message format\")\n```\n\n```go\nvar ErrTagScope = errors.New(\"invalid or missing commit tag\")\n```\n\n## Types\n\n```go\ntype CommitPolicyConfig struct {\n\tPatchScopes map[string][]string   `yaml:\"PatchScopes\"`\n\tPatchTypes  map[string]patchTypeT `yaml:\"PatchTypes\"`\n\tHelpText    string                `yaml:\"HelpText\"`\n\tTagOrder    []tagAlternativesT    `yaml:\"TagOrder\"`\n}\n```\n\n```go\nfunc LoadCommitPolicy(filename string) (CommitPolicyConfig, error)\n```\n\n```go\nfunc (c CommitPolicyConfig) CheckPatchTypes(tag, severity string, patchTypeName string) bool\n```\n\n```go\nfunc (c CommitPolicyConfig) CheckSubject(rawSubject []byte, junitSuite junit.Interface) error\n```\n\n```go\nfunc (c CommitPolicyConfig) CheckSubjectList(commits []aspell.Commit, junitSuite junit.Interface) error\n```\n\n```go\nfunc (c CommitPolicyConfig) IsEmpty() bool\n```\n\n","path":"github.com/haproxytech/check-commit/v5","name":"main","synopsis":"","isRedistributable":true}
