Rules
body-full-stop
condition:
body
ends withvalue
rule:
never
value
text'.'
body-leading-blank
- condition:
body
begins with blank line - rule:
always
body-empty
- condition:
body
is empty - rule:
never
body-max-length
condition:
body
hasvalue
or less charactersrule:
always
value
textInfinity
body-max-line-length
condition:
body
lines hasvalue
or less charactersrule:
always
value
textInfinity
body-min-length
condition:
body
hasvalue
or more charactersrule:
always
value
text0
body-case
condition:
body
is in casevalue
rule:
always
value
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 ];
footer-leading-blank
- condition:
footer
begins with blank line - rule:
always
footer-empty
- condition:
footer
is empty - rule:
never
footer-max-length
condition:
footer
hasvalue
or less charactersrule:
always
value
textInfinity
footer-max-line-length
condition:
footer
lines hasvalue
or less charactersrule:
always
value
textInfinity
footer-min-length
condition:
footer
hasvalue
or more charactersrule:
always
value
text0
header-case
condition:
header
is in casevalue
rule:
always
value
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 ];
header-full-stop
condition:
header
ends withvalue
rule:
never
value
text'.'
header-max-length
condition:
header
hasvalue
or less charactersrule:
always
value
text72
header-min-length
condition:
header
hasvalue
or more charactersrule:
always
value
text0
header-trim
- condition:
header
must not have initial and / or trailing whitespaces - rule:
always
references-empty
- condition:
references
has at least one entry - rule:
never
scope-enum
condition:
scope
is found in valuerule:
always
value
text[]
NOTE
- This rule always passes if no scopes are provided in the message or the value > is an empty array.
- When set to
always
, all message scopes must be found in the value. - When set to
never
, none of the message scopes can be found in the value.
scope-case
condition:
scope
is in casevalue
rule:
always
value
text'lower-case'
possible values
[
'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
];
scope-empty
- condition:
scope
is empty - rule:
never
scope-max-length
- condition:
scope
hasvalue
or less characters - rule:
always
- value
Infinity
scope-min-length
- condition:
scope
hasvalue
or more characters - rule:
always
- value
0
subject-case
- condition:
subject
is in casevalue
- rule:
always
- value
['sentence-case', 'start-case', 'pascal-case', 'upper-case'];
- possible values
[
'lower-case', // lower case
'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
];
subject-empty
- condition:
subject
is empty - rule:
never
subject-full-stop
- condition:
subject
ends withvalue
- rule:
never
- value
'.'
subject-max-length
- condition:
subject
hasvalue
or less characters - rule:
always
- value
Infinity
subject-min-length
- condition:
subject
hasvalue
or more characters - rule:
always
- value
0
subject-exclamation-mark
- condition:
subject
has exclamation before the:
marker - rule:
never
type-enum
condition:
type
is found in valuerule:
always
value
js[ 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', ];
type-case
description:
type
is in casevalue
rule:
always
value
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 ];
type-empty
- condition:
type
is empty - rule:
never
type-max-length
condition:
type
hasvalue
or less charactersrule:
always
value
textInfinity
type-min-length
condition:
type
hasvalue
or more charactersrule:
always
value
text0
signed-off-by
condition:
message
hasvalue
rule:
always
value
text'Signed-off-by:'
trailer-exists
condition:
message
has trailervalue
rule:
always
value
text'Signed-off-by:'