diff options
author | Joris Roovers <jroovers@cisco.com> | 2015-09-10 14:58:38 +0200 |
---|---|---|
committer | Joris Roovers <jroovers@cisco.com> | 2015-09-10 14:58:38 +0200 |
commit | 4dca3149bfdfd05b79673c235abbd9e7cfdc0c7c (patch) | |
tree | 81176c2c67f21180f96af2c822bfe1fc7982c1de /README.md | |
parent | bb62844bd060bb0c57a074f953ceef7f45e535ae (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.md | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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 < 80 chars. T2 | title-trailing-whitespace | Title cannot have trailing whitespace (space or tab) |