Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/conventionalcommit/commitlint
/ types & classes
Types & classes
63 in github.com/conventionalcommit/commitlint
⨍
Functions
525
◇
Types & classes
63
↓ 1 callers
TypeAlias
Severity
Severity represent the severity level of a rule
lint/lint.go:21
↓ 1 callers
TypeAlias
multiError
internal/cmd/util.go:5
Struct
BodyCaseRule
BodyCaseRule validates that the commit body as a whole matches a given case format. An empty body always passes. Argument: one of the casing.* constan
lint/rule/case_rules.go:96
Struct
BodyEmptyRule
BodyEmptyRule validates that the commit body is not empty.
lint/rule/empty_rules.go:41
Struct
BodyFullStopRule
BodyFullStopRule checks that the body does NOT end with a given character.
lint/rule/fullstop_rules.go:42
Struct
BodyLeadingBlankRule
BodyLeadingBlankRule checks that when a body is present, it begins with a blank line (i.e. the raw commit message has an empty line between header and
lint/rule/leading_blank_rules.go:15
Struct
BodyMaxLenRule
BodyMaxLenRule to validate max length of body
lint/rule/length_rules.go:72
Struct
BodyMaxLineLenRule
BodyMaxLineLenRule to validate max line length of body
lint/rule/length_rules.go:84
Struct
BodyMinLenRule
--- Body --- BodyMinLenRule to validate min length of body
lint/rule/length_rules.go:60
Struct
BreakingChangeExclamationMarkRule
BreakingChangeExclamationMarkRule implements the breaking-change-exclamation-mark rule. It enforces that breaking changes are signalled consistently
lint/rule/breaking_change_rule.go:17
Interface
Commit
Commit represents a parsed conventional commit message.
commit/commit.go:12
Struct
Config
Config represent linter config
lint/config.go:16
TypeAlias
ConfigType
internal/config.go:25
Struct
DefaultFormatter
DefaultFormatter represent default formatter
lint/formatter/default.go:17
Struct
DescriptionCaseRule
DescriptionCaseRule validates that the commit description (subject) matches a given case format. Argument: one of the casing.* constants.
lint/rule/case_rules.go:79
Struct
DescriptionEmptyRule
DescriptionEmptyRule validates that the commit description is not empty.
lint/rule/empty_rules.go:65
Struct
DescriptionFullStopRule
DescriptionFullStopRule checks that the description does NOT end with a given character.
lint/rule/fullstop_rules.go:61
Struct
DescriptionMaxLenRule
DescriptionMaxLenRule to validate max length of description
lint/rule/length_rules.go:200
Struct
DescriptionMinLenRule
--- Description --- DescriptionMinLenRule to validate min length of description
lint/rule/length_rules.go:188
Struct
FooterEmptyRule
FooterEmptyRule validates that the commit footer is not empty.
lint/rule/empty_rules.go:53
Struct
FooterEnumRule
FooterEnumRule to validate footer tokens
lint/rule/footer_enum.go:15
Struct
FooterLeadingBlankRule
FooterLeadingBlankRule checks that when a footer is present, it begins with a blank line (i.e. there is an empty line between body/header and footer).
lint/rule/leading_blank_rules.go:28
Struct
FooterMaxLenRule
FooterMaxLenRule to validate max length of footer
lint/rule/length_rules.go:110
Struct
FooterMaxLineLenRule
FooterMaxLineLenRule to validate max line length of footer
lint/rule/length_rules.go:122
Struct
FooterMinLenRule
--- Footer --- FooterMinLenRule to validate min length of footer
lint/rule/length_rules.go:98
Struct
FooterTypeEnumParam
FooterTypeEnumParam represent a single footer type param
lint/rule/footer_type_enum.go:22
Struct
FooterTypeEnumRule
FooterTypeEnumRule to validate footer tokens
lint/rule/footer_type_enum.go:17
Interface
Formatter
Formatter represent a lint result formatter
lint/lint.go:35
Struct
HeadMaxLenRule
HeadMaxLenRule to validate max length of header
lint/rule/length_rules.go:46
Struct
HeadMinLenRule
--- Header --- HeadMinLenRule to validate min length of header
lint/rule/length_rules.go:34
Struct
HeaderCaseRule
HeaderCaseRule validates that the commit header matches a given case format. Argument: one of the casing.* constants.
lint/rule/case_rules.go:116
Struct
HeaderFullStopRule
HeaderFullStopRule checks that the header does NOT end with a given character. Default character is ".".
lint/rule/fullstop_rules.go:27
Struct
HeaderTrimRule
HeaderTrimRule checks that the header has no leading or trailing whitespace.
lint/rule/header_trim_rule.go:13
Struct
Issue
Issue holds a rule result
lint/result.go:23
Struct
JSONFormatter
JSONFormatter represent default formatter
lint/formatter/json.go:12
Struct
Linter
Linter is linter for commit message
lint/linter.go:13
Interface
Note
Note represents a footer note.
commit/commit.go:6
Interface
Parser
Parser parses a commit message into a Commit.
commit/commit.go:32
Struct
Result
Result holds a linter result
lint/result.go:4
Interface
Rule
Rule represent a linter rule
lint/lint.go:44
Struct
RuleSetting
RuleSetting represent config for a rule
lint/config.go:4
Struct
ScopeCaseRule
ScopeCaseRule validates that commit scope matches a given case format. An empty scope is always accepted (scope is optional by convention). Argument:
lint/rule/case_rules.go:58
Struct
ScopeCharsetRule
ScopeCharsetRule to validate charset of scope
lint/rule/charset_rules.go:39
Struct
ScopeEmptyRule
ScopeEmptyRule validates that the commit scope is not empty.
lint/rule/empty_rules.go:29
Struct
ScopeEnumRule
ScopeEnumRule to validate scope against a list of allowed values
lint/rule/scope_enum.go:13
Struct
ScopeMaxLenRule
ScopeMaxLenRule to validate max length of scope
lint/rule/length_rules.go:174
Struct
ScopeMinLenRule
--- Scope --- ScopeMinLenRule to validate min length of scope
lint/rule/length_rules.go:162
Struct
SeverityConfig
SeverityConfig represent severity levels for rules
lint/config.go:10
Struct
SignedOffByRule
SignedOffByRule checks that at least one footer note token matches the configured value (default "Signed-off-by").
lint/rule/trailer_rules.go:17
Struct
TrailerExistsRule
TrailerExistsRule checks that at least one footer note has a token matching the configured value. This is a generalized version of signed-off-by: any
lint/rule/trailer_rules.go:42
Struct
TypeCaseRule
TypeCaseRule validates that commit type matches a given case format. Argument: one of the casing.* constants (e.g. casing.Lower).
lint/rule/case_rules.go:41
Struct
TypeCharsetRule
TypeCharsetRule to validate charset of type
lint/rule/charset_rules.go:20
Struct
TypeEmptyRule
TypeEmptyRule validates that the commit type is not empty.
lint/rule/empty_rules.go:17
Struct
TypeEnumRule
TypeEnumRule to validate types
lint/rule/type_enum.go:13
Struct
TypeMaxLenRule
TypeMaxLenRule to validate max length of type
lint/rule/length_rules.go:148
Struct
TypeMinLenRule
--- Type --- TypeMinLenRule to validate min length of type
lint/rule/length_rules.go:136
Struct
customParser
test/syntax_parser_test.go:99
Struct
defaultCommit
commit/parser.go:41
Struct
defaultNote
commit/parser.go:84
Struct
defaultParser
commit/parser.go:9
Struct
mockCommit
mockCommit implements lint.Commit for testing without depending on any parser package.
test/helpers_test.go:12
Struct
mockNote
mockNote implements lint.Note for testing
test/helpers_test.go:85
Struct
registry
registry/registry.go:49