We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d14792 commit b8a5515Copy full SHA for b8a5515
@commitlint/lint/src/lint.ts
@@ -35,6 +35,21 @@ export default async function lint(
35
36
// Parse the commit message
37
const parsed = await parse(message, undefined, opts.parserOpts);
38
+
39
+ if (
40
+ parsed.header === null &&
41
+ parsed.body === null &&
42
+ parsed.footer === null
43
+ ) {
44
+ // Commit is empty, skip
45
+ return {
46
+ valid: true,
47
+ errors: [],
48
+ warnings: [],
49
+ input: message
50
+ };
51
+ }
52
53
const allRules: Map<string, Rule<unknown> | Rule<never>> = new Map(
54
Object.entries(defaultRules)
55
);
0 commit comments