You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| header-min-length | int | n/a | checks the min length of header (first line) |
199
+
| header-max-length | int | n/a | checks the max length of header (first line) |
200
+
| body-max-line-length | int | n/a | checks the max length of each line in body |
201
+
| footer-max-line-length | int | n/a | checks the max length of each line in footer |
202
+
| type-enum | []string | n/a | restrict type to given list of string |
203
+
| scope-enum | []string | allow-empty: bool | restrict scope to given list of string |
204
+
| footer-enum| []string | n/a | restrict footer token to given list of string |
205
+
| type-min-length | int | n/a | checks the min length of type |
206
+
| type-max-length | int | n/a | checks the max length of type |
207
+
| scope-min-length | int | n/a | checks the min length of scope |
208
+
| scope-max-length | int | n/a | checks the max length of scope |
209
+
| description-min-length | int | n/a | checks the min length of description |
210
+
| description-max-length | int | n/a | checks the max length of description |
211
+
| body-min-length | int | n/a | checks the min length of body |
212
+
| body-max-length | int | n/a | checks the max length of body |
213
+
| footer-min-length | int | n/a | checks the min length of footer |
214
+
| footer-max-length| int| n/a | checks the max length of footer |
215
+
| type-charset | string | n/a | restricts type to given charset |
216
+
| scope-charset | string | n/a | restricts scope to given charset |
207
217
208
218
## Available Formatters
209
219
@@ -215,15 +225,15 @@ commitlint
215
225
→ input: "fear: do not fear for ..."
216
226
217
227
Errors:
218
-
❌ type-enum: type 'fear' is not allowed, you can use one of [build chore ci docs feat fix merge perf refactor revert style test]
228
+
❌ type-enum: type 'fear' is not allowed, you can use one of [build chore ci docs feat fix merge perf refactor revert style test]
219
229
220
-
Total 1 errors, 0 warnings
230
+
Total 1 errors, 0 warnings, 0 other severities
221
231
```
222
232
223
233
- JSON
224
234
225
235
```json
226
-
{"errors":[{"message":"type 'fear' is not allowed, you can use one of [build chore ci docs feat fix merge perf refactor revert style test]","name":"type-enum"}],"input":"fear: do not fear for commit","status":false,"warnings":[]}
236
+
{"errors":[{"messages":["type 'fear' is not allowed, you can use one of [build chore ci docs feat fix merge perf refactor revert style test]"],"name":"type-enum"}],"input":"fear: do not fear for commit message","others":[],"status":false,"warnings":[]}
227
237
```
228
238
229
239
## Extensibility
@@ -232,7 +242,7 @@ Total 1 errors, 0 warnings
232
242
233
243
- How to have custom config for each repository?
234
244
235
-
Place `commitlint.yaml` file in repo root directory. linter follows [config precedence](#precedence).
245
+
Place `.commitlint.yaml` file in repo root directory. linter follows [config precedence](#precedence).
236
246
237
247
To create a sample config, run `commitlint config create`
238
248
@@ -243,4 +253,3 @@ Total 1 errors, 0 warnings
243
253
## License
244
254
245
255
All packages are licensed under [MIT License](LICENSE.md)
0 commit comments