summaryrefslogtreecommitdiffstats
path: root/.github/commitlint.config.js
diff options
context:
space:
mode:
Diffstat (limited to '.github/commitlint.config.js')
-rw-r--r--.github/commitlint.config.js46
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/commitlint.config.js b/.github/commitlint.config.js
new file mode 100644
index 0000000..2b420b6
--- /dev/null
+++ b/.github/commitlint.config.js
@@ -0,0 +1,46 @@
+module.exports = {
+ rules: {
+ 'header-max-length': [2, 'always', 72],
+ 'type-case': [2, 'always', 'lower-case'],
+ 'type-empty': [2, 'never'],
+ 'type-enum': [
+ 2,
+ 'always',
+ [
+ 'babeld',
+ 'bfdd',
+ 'bgpd',
+ 'build',
+ 'doc',
+ 'docker',
+ 'eigrpd',
+ 'fpm',
+ 'isisd',
+ 'ldpd',
+ 'lib',
+ 'mgmtd',
+ 'multi',
+ 'nhrpd',
+ 'ospf6d',
+ 'ospfd',
+ 'pathd',
+ 'pbrd',
+ 'pimd',
+ 'pim6d',
+ 'ripd',
+ 'ripngd',
+ 'sharpd',
+ 'staticd',
+ 'tests',
+ 'tools',
+ 'vtysh',
+ 'vrrpd',
+ 'yang',
+ 'zebra',
+ 'all',
+ ],
+ ],
+ 'subject-empty': [2, 'never'],
+ 'subject-full-stop': [2, 'never', '.'],
+ },
+};