Rules
body-case
condition:
bodyis in casevaluerule:
alwaysvalue
text'lower-case'possible values
js[ "lower-case", // default "upper-case", // UPPERCASE "camel-case", // camelCase "kebab-case", // kebab-case "pascal-case", // PascalCase "sentence-case", // Sentence case "snake-case", // snake_case "start-case", // Start Case ];
body-empty
- condition:
bodyis empty - rule:
never
body-full-stop
condition:
bodyends withvaluerule:
nevervalue
text'.'
body-leading-blank
- condition:
bodybegins with blank line - rule:
always
body-max-length
condition:
bodyhasvalueor less charactersrule:
alwaysvalue
textInfinity
body-max-line-length
condition:
bodylines havevalueor less characters, or contain a URLrule:
alwaysvalue
textInfinity
body-min-length
condition:
bodyhasvalueor more charactersrule:
alwaysvalue
text0
breaking-change-exclamation-mark
- condition: Either both or neither
headerhas an exclamation mark before the:marker and a line infootermatches the regular expression^BREAKING[ -]CHANGE: - rule:
always
NOTE
This rule enforces that breaking changes are marked by both a ! in the header and BREAKING CHANGE in the footer. The behavior is that of an XNOR operation:
- It passes when either both are present or both are not.
- It fails when one is present and the other is not.
footer-empty
- condition:
footeris empty - rule:
never
footer-leading-blank
- condition:
footerbegins with blank line - rule:
always
footer-max-length
condition:
footerhasvalueor less characters