summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJoris Roovers <jroovers@cisco.com>2015-09-10 14:58:38 +0200
committerJoris Roovers <jroovers@cisco.com>2015-09-10 14:58:38 +0200
commit4dca3149bfdfd05b79673c235abbd9e7cfdc0c7c (patch)
tree81176c2c67f21180f96af2c822bfe1fc7982c1de /README.md
parentbb62844bd060bb0c57a074f953ceef7f45e535ae (diff)
Support for setting rule options through gitlint file
Rules can now have specific options set through gitlint config files (e.g. setting line-length for the title-max-length rule).
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/README.md b/README.md
index b821b13..4856740 100644
--- a/README.md
+++ b/README.md
@@ -77,16 +77,22 @@ gitlint --config myconfigfile
By default, gitlint will look for an **optional** ```.gitlint``` file for configuration.
```
-[general]
-# rules can be ignored by name or by id
-ignore=title-max-length, B1
-# verbosity level: 0-3 (default: 2)
-verbosity=3
+[general]
+ignore=title-trailing-punctuation, T3
+# verbosity should be a value between 1 and 3, the commandline -v flags take precedence over this
+verbosity = 2
+
+[title-max-length]
+line-length=20
+
+[B1]
+# B1 = body-max-line-length
+line-length=30
```
## Supported Rules ##
-ID | Name | Description
+ID | Name | Description
------|-----------------------------|----------------------------------------------------
T1 | title-max-length | Title length must be &lt; 80 chars.
T2 | title-trailing-whitespace | Title cannot have trailing whitespace (space or tab)