Adding upstream version 0.13.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
1805ece79d
commit
d8f166e6bb
167 changed files with 15302 additions and 0 deletions
11
qa/expected/test_commits/test_ignore_commits_1
Normal file
11
qa/expected/test_commits/test_ignore_commits_1
Normal file
|
@ -0,0 +1,11 @@
|
|||
Commit {commit_sha0}:
|
||||
1: T3 Title has trailing punctuation (.): "Sïmple title4."
|
||||
|
||||
Commit {commit_sha1}:
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "Sïmple WIP title3."
|
||||
|
||||
Commit {commit_sha2}:
|
||||
3: B5 Body message is too short (5<20): "Short"
|
||||
|
||||
Commit {commit_sha3}:
|
||||
1: T3 Title has trailing punctuation (.): "Sïmple title."
|
8
qa/expected/test_commits/test_lint_head_1
Normal file
8
qa/expected/test_commits/test_lint_head_1
Normal file
|
@ -0,0 +1,8 @@
|
|||
Commit {commit_sha0}:
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: Sïmple title"
|
||||
|
||||
Commit {commit_sha1}:
|
||||
3: B6 Body message is missing
|
||||
|
||||
Commit {commit_sha2}:
|
||||
1: T3 Title has trailing punctuation (.): "Sïmple title."
|
73
qa/expected/test_commits/test_lint_staged_msg_filename_1
Normal file
73
qa/expected/test_commits/test_lint_staged_msg_filename_1
Normal file
|
@ -0,0 +1,73 @@
|
|||
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}
|
||||
DEBUG: gitlint.cli Gitlint version: {gitlint_version}
|
||||
DEBUG: gitlint.cli GITLINT_USE_SH_LIB: {GITLINT_USE_SH_LIB}
|
||||
DEBUG: gitlint.cli Configuration
|
||||
config-path: None
|
||||
[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: True
|
||||
verbosity: 3
|
||||
debug: True
|
||||
target: {target}
|
||||
[RULES]
|
||||
I1: ignore-by-title
|
||||
ignore=all
|
||||
regex=None
|
||||
I2: ignore-by-body
|
||||
ignore=all
|
||||
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
|
||||
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=
|
||||
M1: author-valid-email
|
||||
regex=[^@ ]+@[^@ ]+\.[^@ ]+
|
||||
|
||||
DEBUG: gitlint.cli Fetching additional meta-data from staged commit
|
||||
DEBUG: gitlint.cli Using --msg-filename.
|
||||
DEBUG: gitlint.cli Linting 1 commit(s)
|
||||
DEBUG: gitlint.lint Linting commit [SHA UNKNOWN]
|
||||
DEBUG: gitlint.lint Commit Object
|
||||
--- Commit Message ----
|
||||
WIP: from fïle test.
|
||||
--- Meta info ---------
|
||||
Author: gitlint-test-user <gitlint@test.com>
|
||||
Date: {staged_date}
|
||||
is-merge-commit: False
|
||||
is-fixup-commit: False
|
||||
is-squash-commit: False
|
||||
is-revert-commit: False
|
||||
Branches: ['master']
|
||||
Changed Files: {changed_files}
|
||||
-----------------------
|
||||
1: T3 Title has trailing punctuation (.): "WIP: from fïle test."
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: from fïle test."
|
||||
3: B6 Body message is missing
|
||||
DEBUG: gitlint.cli Exit Code = 3
|
75
qa/expected/test_commits/test_lint_staged_stdin_1
Normal file
75
qa/expected/test_commits/test_lint_staged_stdin_1
Normal file
|
@ -0,0 +1,75 @@
|
|||
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}
|
||||
DEBUG: gitlint.cli Gitlint version: {gitlint_version}
|
||||
DEBUG: gitlint.cli GITLINT_USE_SH_LIB: {GITLINT_USE_SH_LIB}
|
||||
DEBUG: gitlint.cli Configuration
|
||||
config-path: None
|
||||
[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: True
|
||||
verbosity: 3
|
||||
debug: True
|
||||
target: {target}
|
||||
[RULES]
|
||||
I1: ignore-by-title
|
||||
ignore=all
|
||||
regex=None
|
||||
I2: ignore-by-body
|
||||
ignore=all
|
||||
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
|
||||
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=
|
||||
M1: author-valid-email
|
||||
regex=[^@ ]+@[^@ ]+\.[^@ ]+
|
||||
|
||||
DEBUG: gitlint.cli Fetching additional meta-data from staged commit
|
||||
DEBUG: gitlint.cli Stdin data: 'WIP: Pïpe test.
|
||||
'
|
||||
DEBUG: gitlint.cli Stdin detected and not ignored. Using as input.
|
||||
DEBUG: gitlint.cli Linting 1 commit(s)
|
||||
DEBUG: gitlint.lint Linting commit [SHA UNKNOWN]
|
||||
DEBUG: gitlint.lint Commit Object
|
||||
--- Commit Message ----
|
||||
WIP: Pïpe test.
|
||||
--- Meta info ---------
|
||||
Author: gitlint-test-user <gitlint@test.com>
|
||||
Date: {staged_date}
|
||||
is-merge-commit: False
|
||||
is-fixup-commit: False
|
||||
is-squash-commit: False
|
||||
is-revert-commit: False
|
||||
Branches: ['master']
|
||||
Changed Files: {changed_files}
|
||||
-----------------------
|
||||
1: T3 Title has trailing punctuation (.): "WIP: Pïpe test."
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: Pïpe test."
|
||||
3: B6 Body message is missing
|
||||
DEBUG: gitlint.cli Exit Code = 3
|
7
qa/expected/test_commits/test_violations_1
Normal file
7
qa/expected/test_commits/test_violations_1
Normal file
|
@ -0,0 +1,7 @@
|
|||
Commit {commit_sha2}:
|
||||
1: T3 Title has trailing punctuation (.): "Sïmple title3."
|
||||
3: B6 Body message is missing
|
||||
|
||||
Commit {commit_sha1}:
|
||||
1: T3 Title has trailing punctuation (.): "Sïmple title2."
|
||||
3: B6 Body message is missing
|
5
qa/expected/test_config/test_config_from_file_1
Normal file
5
qa/expected/test_config/test_config_from_file_1
Normal file
|
@ -0,0 +1,5 @@
|
|||
1: T1 Title exceeds max length (42>20)
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive)
|
||||
1: T5 Title contains the word 'thåt' (case-insensitive)
|
||||
2: B4 Second line is not empty
|
||||
3: B1 Line exceeds max length (48>30)
|
77
qa/expected/test_config/test_config_from_file_debug_1
Normal file
77
qa/expected/test_config/test_config_from_file_debug_1
Normal file
|
@ -0,0 +1,77 @@
|
|||
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}
|
||||
DEBUG: gitlint.cli Gitlint version: {gitlint_version}
|
||||
DEBUG: gitlint.cli GITLINT_USE_SH_LIB: {GITLINT_USE_SH_LIB}
|
||||
DEBUG: gitlint.cli Configuration
|
||||
config-path: {config_path}
|
||||
[GENERAL]
|
||||
extra-path: None
|
||||
contrib: []
|
||||
ignore: title-trailing-punctuation,B2
|
||||
ignore-merge-commits: True
|
||||
ignore-fixup-commits: True
|
||||
ignore-squash-commits: True
|
||||
ignore-revert-commits: True
|
||||
ignore-stdin: False
|
||||
staged: False
|
||||
verbosity: 2
|
||||
debug: True
|
||||
target: {target}
|
||||
[RULES]
|
||||
I1: ignore-by-title
|
||||
ignore=all
|
||||
regex=None
|
||||
I2: ignore-by-body
|
||||
ignore=all
|
||||
regex=None
|
||||
T1: title-max-length
|
||||
line-length=20
|
||||
T2: title-trailing-whitespace
|
||||
T6: title-leading-whitespace
|
||||
T3: title-trailing-punctuation
|
||||
T4: title-hard-tab
|
||||
T5: title-must-not-contain-word
|
||||
words=WIP,thåt
|
||||
T7: title-match-regex
|
||||
regex=.*
|
||||
B1: body-max-line-length
|
||||
line-length=30
|
||||
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=
|
||||
M1: author-valid-email
|
||||
regex=[^@ ]+@[^@ ]+\.[^@ ]+
|
||||
|
||||
DEBUG: gitlint.cli No --msg-filename flag, no or empty data passed to stdin. Using the local repo.
|
||||
DEBUG: gitlint.cli Linting 1 commit(s)
|
||||
DEBUG: gitlint.lint Linting commit {commit_sha}
|
||||
DEBUG: gitlint.lint Commit Object
|
||||
--- Commit Message ----
|
||||
WIP: Thïs is a title thåt is a bit longer.
|
||||
Content on the second line
|
||||
This line of the body is here because we need it
|
||||
|
||||
--- Meta info ---------
|
||||
Author: gitlint-test-user <gitlint@test.com>
|
||||
Date: {commit_date}
|
||||
is-merge-commit: False
|
||||
is-fixup-commit: False
|
||||
is-squash-commit: False
|
||||
is-revert-commit: False
|
||||
Branches: ['master']
|
||||
Changed Files: {changed_files}
|
||||
-----------------------
|
||||
1: T1 Title exceeds max length (42>20)
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive)
|
||||
1: T5 Title contains the word 'thåt' (case-insensitive)
|
||||
2: B4 Second line is not empty
|
||||
3: B1 Line exceeds max length (48>30)
|
||||
DEBUG: gitlint.cli Exit Code = 5
|
3
qa/expected/test_config/test_set_rule_option_1
Normal file
3
qa/expected/test_config/test_set_rule_option_1
Normal file
|
@ -0,0 +1,3 @@
|
|||
1: T1 Title exceeds max length (16>5): "This ïs a title."
|
||||
1: T3 Title has trailing punctuation (.): "This ïs a title."
|
||||
3: B6 Body message is missing
|
3
qa/expected/test_config/test_verbosity_1
Normal file
3
qa/expected/test_config/test_verbosity_1
Normal file
|
@ -0,0 +1,3 @@
|
|||
1: T3 Title has trailing punctuation (.)
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive)
|
||||
2: B4 Second line is not empty
|
3
qa/expected/test_config/test_verbosity_2
Normal file
3
qa/expected/test_config/test_verbosity_2
Normal file
|
@ -0,0 +1,3 @@
|
|||
1: T3 Title has trailing punctuation (.): "WIP: Thïs is a title."
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: Thïs is a title."
|
||||
2: B4 Second line is not empty: "Contënt on the second line"
|
4
qa/expected/test_contrib/test_contrib_rules_1
Normal file
4
qa/expected/test_contrib/test_contrib_rules_1
Normal file
|
@ -0,0 +1,4 @@
|
|||
1: CC1 Body does not contain a 'Signed-Off-By' line
|
||||
1: CT1 Title does not start with one of fix, feat, chore, docs, style, refactor, perf, test, revert: "WIP Thi$ is å title"
|
||||
1: CT1 Title does not follow ConventionalCommits.org format 'type(optional-scope): description': "WIP Thi$ is å title"
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP Thi$ is å title"
|
|
@ -0,0 +1,4 @@
|
|||
1: CC1 Body does not contain a 'Signed-Off-By' line
|
||||
1: CT1 Title does not start with one of föo, bår: "WIP Thi$ is å title"
|
||||
1: CT1 Title does not follow ConventionalCommits.org format 'type(optional-scope): description': "WIP Thi$ is å title"
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP Thi$ is å title"
|
3
qa/expected/test_gitlint/test_msg_filename_1
Normal file
3
qa/expected/test_gitlint/test_msg_filename_1
Normal file
|
@ -0,0 +1,3 @@
|
|||
1: T3 Title has trailing punctuation (.): "WIP: msg-fïlename test."
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: msg-fïlename test."
|
||||
3: B6 Body message is missing
|
3
qa/expected/test_gitlint/test_msg_filename_no_tty_1
Normal file
3
qa/expected/test_gitlint/test_msg_filename_no_tty_1
Normal file
|
@ -0,0 +1,3 @@
|
|||
1: T3 Title has trailing punctuation (.): "WIP: msg-fïlename NO TTY test."
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: msg-fïlename NO TTY test."
|
||||
3: B6 Body message is missing
|
3
qa/expected/test_gitlint/test_violations_1
Normal file
3
qa/expected/test_gitlint/test_violations_1
Normal file
|
@ -0,0 +1,3 @@
|
|||
1: T3 Title has trailing punctuation (.): "WIP: This ïs a title."
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: This ïs a title."
|
||||
2: B4 Second line is not empty: "Content on the sëcond line"
|
3
qa/expected/test_stdin/test_stdin_file_1
Normal file
3
qa/expected/test_stdin/test_stdin_file_1
Normal file
|
@ -0,0 +1,3 @@
|
|||
1: T3 Title has trailing punctuation (.): "WIP: STDIN ïs a file test."
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: STDIN ïs a file test."
|
||||
3: B6 Body message is missing
|
3
qa/expected/test_stdin/test_stdin_pipe_1
Normal file
3
qa/expected/test_stdin/test_stdin_pipe_1
Normal file
|
@ -0,0 +1,3 @@
|
|||
1: T3 Title has trailing punctuation (.): "WIP: Pïpe test."
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: Pïpe test."
|
||||
3: B6 Body message is missing
|
3
qa/expected/test_stdin/test_stdin_pipe_empty_1
Normal file
3
qa/expected/test_stdin/test_stdin_pipe_empty_1
Normal file
|
@ -0,0 +1,3 @@
|
|||
1: T3 Title has trailing punctuation (.): "WIP: This ïs a title."
|
||||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: This ïs a title."
|
||||
2: B4 Second line is not empty: "Content on the sëcond line"
|
|
@ -0,0 +1,5 @@
|
|||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: Thi$ is å title"
|
||||
1: UC2 Body does not contain a 'Signed-Off-By' line
|
||||
1: UC3 Branch name 'master' does not start with one of ['feature/', 'hotfix/', 'release/']
|
||||
1: UL1 Title contains the special character '$': "WIP: Thi$ is å title"
|
||||
2: B4 Second line is not empty: "Content on the second line"
|
|
@ -0,0 +1,6 @@
|
|||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: Thi$ is å title"
|
||||
1: UC1 Body contains too many lines (2 > 1)
|
||||
1: UC2 Body does not contain a 'Signed-Off-By' line
|
||||
1: UC3 Branch name 'master' does not start with one of ['feature/', 'hotfix/', 'release/']
|
||||
1: UL1 Title contains the special character '$': "WIP: Thi$ is å title"
|
||||
2: B4 Second line is not empty: "Content on the second line"
|
|
@ -0,0 +1,5 @@
|
|||
1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: Thi$ is å title"
|
||||
1: UC1 GitContext.current_branch: master
|
||||
1: UC1 GitContext.commentchar: #
|
||||
1: UC2 GitCommit.branches: ['master']
|
||||
2: B4 Second line is not empty: "Content on the second line"
|
Loading…
Add table
Add a link
Reference in a new issue