-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Named rules allow users to have multiple of the same rules active at the same time, which allows them to enforce the same rule multiple times but with different options. Implements #113 Relates to #66
- Loading branch information
1 parent
abe45b1
commit 7beb266
Showing
17 changed files
with
418 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: tëst tïtle" | ||
1: T5:even-more-wörds Title contains the word 'tïtle' (case-insensitive): "WIP: tëst tïtle" | ||
1: T5:extra-wörds Title contains the word 'tëst' (case-insensitive): "WIP: tëst tïtle" | ||
3: B6 Body message is missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
DEBUG: gitlint.cli To report issues, please visit https://github.com/jorisroovers/gitlint/issues | ||
DEBUG: gitlint.cli Platform: {platform} | ||
DEBUG: gitlint.cli Python version: {python_version} | ||
DEBUG: gitlint.cli Git version: git version 1.2.3 | ||
DEBUG: gitlint.cli Gitlint version: {gitlint_version} | ||
DEBUG: gitlint.cli GITLINT_USE_SH_LIB: {GITLINT_USE_SH_LIB} | ||
DEBUG: gitlint.cli DEFAULT_ENCODING: {DEFAULT_ENCODING} | ||
DEBUG: gitlint.cli Configuration | ||
config-path: {config_path} | ||
[GENERAL] | ||
extra-path: None | ||
contrib: [] | ||
ignore: | ||
ignore-merge-commits: True | ||
ignore-fixup-commits: True | ||
ignore-squash-commits: True | ||
ignore-revert-commits: True | ||
ignore-stdin: False | ||
staged: False | ||
verbosity: 3 | ||
debug: True | ||
target: {target} | ||
[RULES] | ||
I1: ignore-by-title | ||
ignore=all | ||
regex=None | ||
I2: ignore-by-body | ||
ignore=all | ||
regex=None | ||
I3: ignore-body-lines | ||
regex=None | ||
T1: title-max-length | ||
line-length=72 | ||
T2: title-trailing-whitespace | ||
T6: title-leading-whitespace | ||
T3: title-trailing-punctuation | ||
T4: title-hard-tab | ||
T5: title-must-not-contain-word | ||
words=WIP,bögus | ||
T7: title-match-regex | ||
regex=.* | ||
B1: body-max-line-length | ||
line-length=80 | ||
B5: body-min-length | ||
min-length=20 | ||
B6: body-is-missing | ||
ignore-merge-commits=True | ||
B2: body-trailing-whitespace | ||
B3: body-hard-tab | ||
B4: body-first-line-empty | ||
B7: body-changed-file-mention | ||
files= | ||
B8: body-match-regex | ||
regex=None | ||
M1: author-valid-email | ||
regex=[^@ ]+@[^@ ]+\.[^@ ]+ | ||
T5:extra-wörds: title-must-not-contain-word:extra-wörds | ||
words=hür,tëst | ||
T5:even-more-wörds: title-must-not-contain-word:even-more-wörds | ||
words=hür,tïtle | ||
|
||
DEBUG: gitlint.cli Stdin data: 'WIP: tëst tïtle' | ||
DEBUG: gitlint.cli Stdin detected and not ignored. Using as input. | ||
DEBUG: gitlint.git ('config', '--get', 'core.commentchar') | ||
DEBUG: gitlint.cli Linting 1 commit(s) | ||
DEBUG: gitlint.lint Linting commit [SHA UNKNOWN] | ||
DEBUG: gitlint.lint Commit Object | ||
--- Commit Message ---- | ||
WIP: tëst tïtle | ||
--- Meta info --------- | ||
Author: None <None> | ||
Date: None | ||
is-merge-commit: False | ||
is-fixup-commit: False | ||
is-squash-commit: False | ||
is-revert-commit: False | ||
Branches: [] | ||
Changed Files: [] | ||
----------------------- | ||
DEBUG: gitlint.cli Exit Code = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[title-must-not-contain-word] | ||
words=WIP,bögus | ||
|
||
[title-must-not-contain-word:extra-wörds] | ||
words=hür,tëst | ||
|
||
[T5:even-more-wörds] | ||
words=hür,tïtle |
Oops, something went wrong.