@@ -33,51 +33,70 @@ Rule configurations are either of type `array` residing on a key with the rule's
33
33
34
34
35
35
### Available rules
36
- #### type-enum
37
- * ** condition** : ` type ` is found in value
36
+ #### body-leading-blank
37
+ * ** condition** : ` body ` begins with blank line
38
+ * ** rule** : ` always `
39
+
40
+ #### body-max-length
41
+ * ** condition** : ` body ` has ` value ` or less characters
38
42
* ** rule** : ` always `
39
43
* ** value**
40
- ``` js
41
- [
42
- ' feat' ,
43
- ' fix' ,
44
- ' docs' ,
45
- ' style' ,
46
- ' refactor' ,
47
- ' test' ,
48
- ' chore' ,
49
- ' revert'
50
- ]
51
- ```
44
+ ``` js
45
+ Infinity
46
+ ```
52
47
53
- #### type-case
54
- * ** description ** : ` type ` is in case ` value `
48
+ #### body-min-length
49
+ * ** condition ** : ` body ` has ` value ` or more characters
55
50
* ** rule** : ` always `
56
51
* ** value**
57
- ``` js
58
- ' lowerCase '
59
- ```
52
+ ``` js
53
+ 0
54
+ ```
60
55
61
- #### type-empty
62
- * ** condition** : ` type ` is empty
63
- * ** rule** : ` never `
56
+ #### footer-leading-blank
57
+ * ** condition** : ` footer ` begins with blank line
58
+ * ** rule** : ` always `
64
59
65
- #### type -max-length
66
- * ** condition** : ` type ` has ` value ` or less characters
60
+ #### footer -max-length
61
+ * ** condition** : ` footer ` has ` value ` or less characters
67
62
* ** rule** : ` always `
68
63
* ** value**
69
64
``` js
70
65
Infinity
71
66
```
72
67
73
- #### type-min-length
74
- * ** condition** : ` type ` has ` value ` or more characters
68
+ #### footer-min-length
69
+ * ** condition** : ` footer ` has ` value ` or more characters
70
+ * ** rule** : ` always `
71
+ * ** value**
72
+ ``` js
73
+ 0
74
+ ```
75
+
76
+ #### header-max-length
77
+ * ** condition** : ` header ` has ` value ` or less characters
78
+ * ** rule** : ` always `
79
+ * ** value**
80
+ ``` js
81
+ 72
82
+ ```
83
+
84
+ #### header-min-length
85
+ * ** condition** : ` header ` has ` value ` or more characters
75
86
* ** rule** : ` always `
76
87
* ** value**
77
88
``` js
78
89
0
79
90
```
80
91
92
+ #### lang
93
+ * ** condition** : ` subject ` is of language ` value `
94
+ * ** rule** : ` always `
95
+ * ** value**
96
+ ``` js
97
+ eng
98
+ ```
99
+
81
100
#### scope-enum
82
101
* ** condition** : ` scope ` is found in value
83
102
* ** rule** : ` always `
@@ -148,49 +167,51 @@ Rule configurations are either of type `array` residing on a key with the rule's
148
167
' .'
149
168
```
150
169
151
- #### body-leading-blank
152
- * ** condition** : ` body ` begins with blank line
153
- * ** rule** : ` always `
154
-
155
- #### body-max-length
156
- * ** condition** : ` body ` has ` value ` or less characters
170
+ #### type-enum
171
+ * ** condition** : ` type ` is found in value
157
172
* ** rule** : ` always `
158
173
* ** value**
159
- ``` js
160
- Infinity
161
- ```
174
+ ``` js
175
+ [
176
+ ' feat' ,
177
+ ' fix' ,
178
+ ' docs' ,
179
+ ' style' ,
180
+ ' refactor' ,
181
+ ' test' ,
182
+ ' chore' ,
183
+ ' revert'
184
+ ]
185
+ ```
162
186
163
- #### body-min-length
164
- * ** condition ** : ` body ` has ` value ` or more characters
187
+ #### type-case
188
+ * ** description ** : ` type ` is in case ` value `
165
189
* ** rule** : ` always `
166
190
* ** value**
167
- ``` js
168
- 0
169
- ```
191
+ ``` js
192
+ ' lowerCase '
193
+ ```
170
194
171
- #### header-max-length
172
- * ** condition** : ` header ` has ` value ` or less characters
195
+ #### type-empty
196
+ * ** condition** : ` type ` is empty
197
+ * ** rule** : ` never `
198
+
199
+ #### type-max-length
200
+ * ** condition** : ` type ` has ` value ` or less characters
173
201
* ** rule** : ` always `
174
202
* ** value**
175
203
``` js
176
- 72
204
+ Infinity
177
205
```
178
206
179
- #### header -min-length
180
- * ** condition** : ` header ` has ` value ` or more characters
207
+ #### type -min-length
208
+ * ** condition** : ` type ` has ` value ` or more characters
181
209
* ** rule** : ` always `
182
210
* ** value**
183
211
``` js
184
212
0
185
213
```
186
214
187
- #### lang
188
- * ** condition** : ` subject ` is of language ` value `
189
- * ** rule** : ` always `
190
- * ** value**
191
- ``` js
192
- eng
193
- ```
194
215
195
216
### Wildcards
196
217
The following rules identify commits that pass linting by skipping all other rules.
0 commit comments