-
condition:
body
ends withvalue
-
rule:
never
-
value
'.'
- condition:
body
begins with blank line - rule:
always
- condition:
body
is empty - rule:
never
-
condition:
body
hasvalue
or less characters -
rule:
always
-
value
Infinity
-
condition:
body
lines hasvalue
or less characters -
rule:
always
-
value
Infinity
-
condition:
body
hasvalue
or more characters -
rule:
always
-
value
0
-
condition:
body
is in casevalue
-
rule:
always
-
value
'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 ];
- condition:
footer
begins with blank line - rule:
always
- condition:
footer
is empty - rule:
never
-
condition:
footer
hasvalue
or less characters -
rule:
always
-
value
Infinity
-
condition:
footer
lines hasvalue
or less characters -
rule:
always
-
value
Infinity
-
condition:
footer
hasvalue
or more characters -
rule:
always
-
value
0
-
condition:
header
is in casevalue
-
rule:
always
-
value
'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 ];
-
condition:
header
ends withvalue
-
rule:
never
-
value
'.'
-
condition:
header
hasvalue
or less characters -
rule:
always
-
value
72
-
condition:
header
hasvalue
or more characters -
rule:
always
-
value
0
- condition:
header
must not have initial and / or trailing whitespaces - rule:
always
- condition:
references
has at least one entry - rule:
never
-
condition:
scope
is found in value -
rule:
always
-
value
[]
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.
-
condition:
scope
is in casevalue
-
rule:
always
-
value
'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
];
- condition:
scope
is empty - rule:
never
- condition:
scope
hasvalue
or less characters - rule:
always
- value
Infinity
- condition:
scope
hasvalue
or more characters - rule:
always
- value
0
- 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
];
- condition:
subject
is empty - rule:
never
- condition:
subject
ends withvalue
- rule:
never
- value
'.'
- condition:
subject
hasvalue
or less characters - rule:
always
- value
Infinity
- condition:
subject
hasvalue
or more characters - rule:
always
- value
0
- condition:
subject
has exclamation before the:
marker - rule:
never
-
condition:
type
is found in value -
rule:
always
-
value
[ 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', ];
-
description:
type
is in casevalue
-
rule:
always
-
value
'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 ];
- condition:
type
is empty - rule:
never
-
condition:
type
hasvalue
or less characters -
rule:
always
-
value
Infinity
-
condition:
type
hasvalue
or more characters -
rule:
always
-
value
0
-
condition:
message
hasvalue
-
rule:
always
-
value
'Signed-off-by:'
-
condition:
message
has trailervalue
-
rule:
always
-
value
'Signed-off-by:'