From 5f208e04c159791e668031a7fa83f98724ec8d24 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 3 Nov 2020 07:07:45 +0100 Subject: Adding upstream version 0.14.0. Signed-off-by: Daniel Baumann --- gitlint/tests/expected/cli/test_cli/test_contrib_1 | 3 + gitlint/tests/expected/cli/test_cli/test_debug_1 | 120 +++++++++++++++++++++ .../expected/cli/test_cli/test_input_stream_1 | 3 + .../cli/test_cli/test_input_stream_debug_1 | 3 + .../cli/test_cli/test_input_stream_debug_2 | 79 ++++++++++++++ .../cli/test_cli/test_lint_multiple_commits_1 | 8 ++ .../test_cli/test_lint_multiple_commits_config_1 | 6 ++ .../cli/test_cli/test_lint_staged_msg_filename_1 | 2 + .../cli/test_cli/test_lint_staged_msg_filename_2 | 82 ++++++++++++++ .../expected/cli/test_cli/test_lint_staged_stdin_1 | 3 + .../expected/cli/test_cli/test_lint_staged_stdin_2 | 84 +++++++++++++++ .../tests/expected/cli/test_cli/test_named_rules_1 | 4 + .../tests/expected/cli/test_cli/test_named_rules_2 | 82 ++++++++++++++ .../cli/test_cli_hooks/test_hook_config_1_stderr | 2 + .../cli/test_cli_hooks/test_hook_config_1_stdout | 5 + .../cli/test_cli_hooks/test_hook_edit_1_stderr | 6 ++ .../cli/test_cli_hooks/test_hook_edit_1_stdout | 14 +++ .../test_cli_hooks/test_hook_local_commit_1_stderr | 2 + .../test_cli_hooks/test_hook_local_commit_1_stdout | 4 + .../cli/test_cli_hooks/test_hook_no_1_stderr | 2 + .../cli/test_cli_hooks/test_hook_no_1_stdout | 8 ++ .../cli/test_cli_hooks/test_hook_no_tty_1_stderr | 2 + .../cli/test_cli_hooks/test_hook_no_tty_1_stdout | 5 + .../test_hook_stdin_no_violations_1_stdout | 2 + .../test_hook_stdin_violations_1_stderr | 2 + .../test_hook_stdin_violations_1_stdout | 5 + .../cli/test_cli_hooks/test_hook_yes_1_stderr | 2 + .../cli/test_cli_hooks/test_hook_yes_1_stdout | 4 + gitlint/tests/expected/test_cli/test_contrib_1 | 3 - gitlint/tests/expected/test_cli/test_debug_1 | 102 ------------------ .../tests/expected/test_cli/test_input_stream_1 | 3 - .../expected/test_cli/test_input_stream_debug_1 | 3 - .../expected/test_cli/test_input_stream_debug_2 | 71 ------------ .../expected/test_cli/test_lint_multiple_commits_1 | 8 -- .../test_cli/test_lint_multiple_commits_config_1 | 6 -- .../test_cli/test_lint_staged_msg_filename_1 | 2 - .../test_cli/test_lint_staged_msg_filename_2 | 70 ------------ .../expected/test_cli/test_lint_staged_stdin_1 | 3 - .../expected/test_cli/test_lint_staged_stdin_2 | 72 ------------- 39 files changed, 544 insertions(+), 343 deletions(-) create mode 100644 gitlint/tests/expected/cli/test_cli/test_contrib_1 create mode 100644 gitlint/tests/expected/cli/test_cli/test_debug_1 create mode 100644 gitlint/tests/expected/cli/test_cli/test_input_stream_1 create mode 100644 gitlint/tests/expected/cli/test_cli/test_input_stream_debug_1 create mode 100644 gitlint/tests/expected/cli/test_cli/test_input_stream_debug_2 create mode 100644 gitlint/tests/expected/cli/test_cli/test_lint_multiple_commits_1 create mode 100644 gitlint/tests/expected/cli/test_cli/test_lint_multiple_commits_config_1 create mode 100644 gitlint/tests/expected/cli/test_cli/test_lint_staged_msg_filename_1 create mode 100644 gitlint/tests/expected/cli/test_cli/test_lint_staged_msg_filename_2 create mode 100644 gitlint/tests/expected/cli/test_cli/test_lint_staged_stdin_1 create mode 100644 gitlint/tests/expected/cli/test_cli/test_lint_staged_stdin_2 create mode 100644 gitlint/tests/expected/cli/test_cli/test_named_rules_1 create mode 100644 gitlint/tests/expected/cli/test_cli/test_named_rules_2 create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_config_1_stderr create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_config_1_stdout create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_edit_1_stderr create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_edit_1_stdout create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_local_commit_1_stderr create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_local_commit_1_stdout create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_1_stderr create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_1_stdout create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_tty_1_stderr create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_tty_1_stdout create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_no_violations_1_stdout create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_violations_1_stderr create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_violations_1_stdout create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_yes_1_stderr create mode 100644 gitlint/tests/expected/cli/test_cli_hooks/test_hook_yes_1_stdout delete mode 100644 gitlint/tests/expected/test_cli/test_contrib_1 delete mode 100644 gitlint/tests/expected/test_cli/test_debug_1 delete mode 100644 gitlint/tests/expected/test_cli/test_input_stream_1 delete mode 100644 gitlint/tests/expected/test_cli/test_input_stream_debug_1 delete mode 100644 gitlint/tests/expected/test_cli/test_input_stream_debug_2 delete mode 100644 gitlint/tests/expected/test_cli/test_lint_multiple_commits_1 delete mode 100644 gitlint/tests/expected/test_cli/test_lint_multiple_commits_config_1 delete mode 100644 gitlint/tests/expected/test_cli/test_lint_staged_msg_filename_1 delete mode 100644 gitlint/tests/expected/test_cli/test_lint_staged_msg_filename_2 delete mode 100644 gitlint/tests/expected/test_cli/test_lint_staged_stdin_1 delete mode 100644 gitlint/tests/expected/test_cli/test_lint_staged_stdin_2 (limited to 'gitlint/tests/expected') diff --git a/gitlint/tests/expected/cli/test_cli/test_contrib_1 b/gitlint/tests/expected/cli/test_cli/test_contrib_1 new file mode 100644 index 0000000..cdfb821 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_contrib_1 @@ -0,0 +1,3 @@ +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, ci, build: "Test tïtle" +1: CT1 Title does not follow ConventionalCommits.org format 'type(optional-scope): description': "Test tïtle" diff --git a/gitlint/tests/expected/cli/test_cli/test_debug_1 b/gitlint/tests/expected/cli/test_cli/test_debug_1 new file mode 100644 index 0000000..a95a58d --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_debug_1 @@ -0,0 +1,120 @@ +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: title-trailing-whitespace,B2 +ignore-merge-commits: False +ignore-fixup-commits: True +ignore-squash-commits: True +ignore-revert-commits: True +ignore-stdin: False +staged: False +verbosity: 1 +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=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,bögus + T7: title-match-regex + regex=None + T8: title-min-length + min-length=5 + 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= + B8: body-match-regex + regex=None + 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.git ('rev-list', 'foo...bar') +DEBUG: gitlint.cli Linting 3 commit(s) +DEBUG: gitlint.git ('log', '6f29bf81a8322a04071bb794666e48c443a90360', '-1', '--pretty=%aN%x00%aE%x00%ai%x00%P%n%B') +DEBUG: gitlint.git ('config', '--get', 'core.commentchar') +DEBUG: gitlint.lint Linting commit 6f29bf81a8322a04071bb794666e48c443a90360 +DEBUG: gitlint.git ('branch', '--contains', '6f29bf81a8322a04071bb794666e48c443a90360') +DEBUG: gitlint.git ('diff-tree', '--no-commit-id', '--name-only', '-r', '--root', '6f29bf81a8322a04071bb794666e48c443a90360') +DEBUG: gitlint.lint Commit Object +--- Commit Message ---- +commït-title1 + +commït-body1 +--- Meta info --------- +Author: test åuthor1 +Date: 2016-12-03 15:28:15 +0100 +is-merge-commit: False +is-fixup-commit: False +is-squash-commit: False +is-revert-commit: False +Branches: ['commit-1-branch-1', 'commit-1-branch-2'] +Changed Files: ['commit-1/file-1', 'commit-1/file-2'] +----------------------- +DEBUG: gitlint.git ('log', '25053ccec5e28e1bb8f7551fdbb5ab213ada2401', '-1', '--pretty=%aN%x00%aE%x00%ai%x00%P%n%B') +DEBUG: gitlint.lint Linting commit 25053ccec5e28e1bb8f7551fdbb5ab213ada2401 +DEBUG: gitlint.git ('branch', '--contains', '25053ccec5e28e1bb8f7551fdbb5ab213ada2401') +DEBUG: gitlint.git ('diff-tree', '--no-commit-id', '--name-only', '-r', '--root', '25053ccec5e28e1bb8f7551fdbb5ab213ada2401') +DEBUG: gitlint.lint Commit Object +--- Commit Message ---- +commït-title2. + +commït-body2 +--- Meta info --------- +Author: test åuthor2 +Date: 2016-12-04 15:28:15 +0100 +is-merge-commit: False +is-fixup-commit: False +is-squash-commit: False +is-revert-commit: False +Branches: ['commit-2-branch-1', 'commit-2-branch-2'] +Changed Files: ['commit-2/file-1', 'commit-2/file-2'] +----------------------- +DEBUG: gitlint.git ('log', '4da2656b0dadc76c7ee3fd0243a96cb64007f125', '-1', '--pretty=%aN%x00%aE%x00%ai%x00%P%n%B') +DEBUG: gitlint.lint Linting commit 4da2656b0dadc76c7ee3fd0243a96cb64007f125 +DEBUG: gitlint.git ('branch', '--contains', '4da2656b0dadc76c7ee3fd0243a96cb64007f125') +DEBUG: gitlint.git ('diff-tree', '--no-commit-id', '--name-only', '-r', '--root', '4da2656b0dadc76c7ee3fd0243a96cb64007f125') +DEBUG: gitlint.lint Commit Object +--- Commit Message ---- +föobar +bar +--- Meta info --------- +Author: test åuthor3 +Date: 2016-12-05 15:28:15 +0100 +is-merge-commit: False +is-fixup-commit: False +is-squash-commit: False +is-revert-commit: False +Branches: ['commit-3-branch-1', 'commit-3-branch-2'] +Changed Files: ['commit-3/file-1', 'commit-3/file-2'] +----------------------- +DEBUG: gitlint.cli Exit Code = 6 \ No newline at end of file diff --git a/gitlint/tests/expected/cli/test_cli/test_input_stream_1 b/gitlint/tests/expected/cli/test_cli/test_input_stream_1 new file mode 100644 index 0000000..4326729 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_input_stream_1 @@ -0,0 +1,3 @@ +1: T2 Title has trailing whitespace: "WIP: tïtle " +1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: tïtle " +3: B6 Body message is missing diff --git a/gitlint/tests/expected/cli/test_cli/test_input_stream_debug_1 b/gitlint/tests/expected/cli/test_cli/test_input_stream_debug_1 new file mode 100644 index 0000000..4326729 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_input_stream_debug_1 @@ -0,0 +1,3 @@ +1: T2 Title has trailing whitespace: "WIP: tïtle " +1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: tïtle " +3: B6 Body message is missing diff --git a/gitlint/tests/expected/cli/test_cli/test_input_stream_debug_2 b/gitlint/tests/expected/cli/test_cli/test_input_stream_debug_2 new file mode 100644 index 0000000..c05d147 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_input_stream_debug_2 @@ -0,0 +1,79 @@ +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: 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: 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 + T7: title-match-regex + regex=None + T8: title-min-length + min-length=5 + 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=[^@ ]+@[^@ ]+\.[^@ ]+ + +DEBUG: gitlint.cli Stdin data: 'WIP: 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ïtle +--- Meta info --------- +Author: 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 = 3 \ No newline at end of file diff --git a/gitlint/tests/expected/cli/test_cli/test_lint_multiple_commits_1 b/gitlint/tests/expected/cli/test_cli/test_lint_multiple_commits_1 new file mode 100644 index 0000000..be3288b --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_lint_multiple_commits_1 @@ -0,0 +1,8 @@ +Commit 6f29bf81a8: +3: B5 Body message is too short (12<20): "commït-body1" + +Commit 25053ccec5: +3: B5 Body message is too short (12<20): "commït-body2" + +Commit 4da2656b0d: +3: B5 Body message is too short (12<20): "commït-body3" diff --git a/gitlint/tests/expected/cli/test_cli/test_lint_multiple_commits_config_1 b/gitlint/tests/expected/cli/test_cli/test_lint_multiple_commits_config_1 new file mode 100644 index 0000000..1bf0503 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_lint_multiple_commits_config_1 @@ -0,0 +1,6 @@ +Commit 6f29bf81a8: +3: B5 Body message is too short (12<20): "commït-body1" + +Commit 4da2656b0d: +1: T3 Title has trailing punctuation (.): "commït-title3." +3: B5 Body message is too short (12<20): "commït-body3" diff --git a/gitlint/tests/expected/cli/test_cli/test_lint_staged_msg_filename_1 b/gitlint/tests/expected/cli/test_cli/test_lint_staged_msg_filename_1 new file mode 100644 index 0000000..9a9091b --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_lint_staged_msg_filename_1 @@ -0,0 +1,2 @@ +1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: msg-filename tïtle" +3: B6 Body message is missing diff --git a/gitlint/tests/expected/cli/test_cli/test_lint_staged_msg_filename_2 b/gitlint/tests/expected/cli/test_cli/test_lint_staged_msg_filename_2 new file mode 100644 index 0000000..e8e9f33 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_lint_staged_msg_filename_2 @@ -0,0 +1,82 @@ +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: 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 + 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 + T7: title-match-regex + regex=None + T8: title-min-length + min-length=5 + 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=[^@ ]+@[^@ ]+\.[^@ ]+ + +DEBUG: gitlint.cli Fetching additional meta-data from staged commit +DEBUG: gitlint.cli Using --msg-filename. +DEBUG: gitlint.git ('config', '--get', 'core.commentchar') +DEBUG: gitlint.cli Linting 1 commit(s) +DEBUG: gitlint.lint Linting commit [SHA UNKNOWN] +DEBUG: gitlint.git ('config', '--get', 'user.name') +DEBUG: gitlint.git ('config', '--get', 'user.email') +DEBUG: gitlint.git ('rev-parse', '--abbrev-ref', 'HEAD') +DEBUG: gitlint.git ('diff', '--staged', '--name-only', '-r') +DEBUG: gitlint.lint Commit Object +--- Commit Message ---- +WIP: msg-filename tïtle +--- Meta info --------- +Author: föo user +Date: 2020-02-19 12:18:46 +0100 +is-merge-commit: False +is-fixup-commit: False +is-squash-commit: False +is-revert-commit: False +Branches: ['my-branch'] +Changed Files: ['commit-1/file-1', 'commit-1/file-2'] +----------------------- +DEBUG: gitlint.cli Exit Code = 2 \ No newline at end of file diff --git a/gitlint/tests/expected/cli/test_cli/test_lint_staged_stdin_1 b/gitlint/tests/expected/cli/test_cli/test_lint_staged_stdin_1 new file mode 100644 index 0000000..4326729 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_lint_staged_stdin_1 @@ -0,0 +1,3 @@ +1: T2 Title has trailing whitespace: "WIP: tïtle " +1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: tïtle " +3: B6 Body message is missing diff --git a/gitlint/tests/expected/cli/test_cli/test_lint_staged_stdin_2 b/gitlint/tests/expected/cli/test_cli/test_lint_staged_stdin_2 new file mode 100644 index 0000000..b822edc --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_lint_staged_stdin_2 @@ -0,0 +1,84 @@ +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: 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 + 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 + T7: title-match-regex + regex=None + T8: title-min-length + min-length=5 + 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=[^@ ]+@[^@ ]+\.[^@ ]+ + +DEBUG: gitlint.cli Fetching additional meta-data from staged commit +DEBUG: gitlint.cli Stdin data: 'WIP: 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.git ('config', '--get', 'user.name') +DEBUG: gitlint.git ('config', '--get', 'user.email') +DEBUG: gitlint.git ('rev-parse', '--abbrev-ref', 'HEAD') +DEBUG: gitlint.git ('diff', '--staged', '--name-only', '-r') +DEBUG: gitlint.lint Commit Object +--- Commit Message ---- +WIP: tïtle +--- Meta info --------- +Author: föo user +Date: 2020-02-19 12:18:46 +0100 +is-merge-commit: False +is-fixup-commit: False +is-squash-commit: False +is-revert-commit: False +Branches: ['my-branch'] +Changed Files: ['commit-1/file-1', 'commit-1/file-2'] +----------------------- +DEBUG: gitlint.cli Exit Code = 3 \ No newline at end of file diff --git a/gitlint/tests/expected/cli/test_cli/test_named_rules_1 b/gitlint/tests/expected/cli/test_cli/test_named_rules_1 new file mode 100644 index 0000000..a581d05 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_named_rules_1 @@ -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 diff --git a/gitlint/tests/expected/cli/test_cli/test_named_rules_2 b/gitlint/tests/expected/cli/test_cli/test_named_rules_2 new file mode 100644 index 0000000..828e296 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli/test_named_rules_2 @@ -0,0 +1,82 @@ +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=None + T8: title-min-length + min-length=5 + 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 +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 \ No newline at end of file diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_config_1_stderr b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_config_1_stderr new file mode 100644 index 0000000..cfacd42 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_config_1_stderr @@ -0,0 +1,2 @@ +1: T1 Title exceeds max length (27>5): "WIP: Test hook config tïtle" +1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: Test hook config tïtle" diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_config_1_stdout b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_config_1_stdout new file mode 100644 index 0000000..5d3f1fc --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_config_1_stdout @@ -0,0 +1,5 @@ +gitlint: checking commit message... +----------------------------------------------- +gitlint: Your commit message contains the above violations. +Continue with commit anyways (this keeps the current commit message)? [y(es)/n(no)/e(dit)] +Aborted! diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_edit_1_stderr b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_edit_1_stderr new file mode 100644 index 0000000..3eb8fca --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_edit_1_stderr @@ -0,0 +1,6 @@ +1: T5 Title contains the word 'WIP' (case-insensitive): "{commit_msg}" +3: B6 Body message is missing +1: T5 Title contains the word 'WIP' (case-insensitive): "{commit_msg}" +3: B6 Body message is missing +1: T5 Title contains the word 'WIP' (case-insensitive): "{commit_msg}" +3: B6 Body message is missing diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_edit_1_stdout b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_edit_1_stdout new file mode 100644 index 0000000..fa6b3bc --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_edit_1_stdout @@ -0,0 +1,14 @@ +gitlint: checking commit message... +----------------------------------------------- +gitlint: Your commit message contains the above violations. +Continue with commit anyways (this keeps the current commit message)? [y(es)/n(no)/e(dit)] gitlint: checking commit message... +----------------------------------------------- +gitlint: Your commit message contains the above violations. +Continue with commit anyways (this keeps the current commit message)? [y(es)/n(no)/e(dit)] gitlint: checking commit message... +----------------------------------------------- +gitlint: Your commit message contains the above violations. +Continue with commit anyways (this keeps the current commit message)? [y(es)/n(no)/e(dit)] Commit aborted. +Your commit message: +----------------------------------------------- +{commit_msg} +----------------------------------------------- diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_local_commit_1_stderr b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_local_commit_1_stderr new file mode 100644 index 0000000..11c3cd8 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_local_commit_1_stderr @@ -0,0 +1,2 @@ +1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: commït-title" +3: B5 Body message is too short (11<20): "commït-body" diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_local_commit_1_stdout b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_local_commit_1_stdout new file mode 100644 index 0000000..a95bfea --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_local_commit_1_stdout @@ -0,0 +1,4 @@ +gitlint: checking commit message... +----------------------------------------------- +gitlint: Your commit message contains the above violations. +Continue with commit anyways (this keeps the current commit message)? [y(es)/n(no)/e(dit)] Editing only possible when --msg-filename is specified. diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_1_stderr b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_1_stderr new file mode 100644 index 0000000..6d0c9cf --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_1_stderr @@ -0,0 +1,2 @@ +1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: höok no" +3: B6 Body message is missing diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_1_stdout b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_1_stdout new file mode 100644 index 0000000..9cc53c1 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_1_stdout @@ -0,0 +1,8 @@ +gitlint: checking commit message... +----------------------------------------------- +gitlint: Your commit message contains the above violations. +Continue with commit anyways (this keeps the current commit message)? [y(es)/n(no)/e(dit)] Commit aborted. +Your commit message: +----------------------------------------------- +WIP: höok no +----------------------------------------------- diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_tty_1_stderr b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_tty_1_stderr new file mode 100644 index 0000000..a8d8760 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_tty_1_stderr @@ -0,0 +1,2 @@ +1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: tïtle" +3: B6 Body message is missing diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_tty_1_stdout b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_tty_1_stdout new file mode 100644 index 0000000..5d3f1fc --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_no_tty_1_stdout @@ -0,0 +1,5 @@ +gitlint: checking commit message... +----------------------------------------------- +gitlint: Your commit message contains the above violations. +Continue with commit anyways (this keeps the current commit message)? [y(es)/n(no)/e(dit)] +Aborted! diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_no_violations_1_stdout b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_no_violations_1_stdout new file mode 100644 index 0000000..da1ef0b --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_no_violations_1_stdout @@ -0,0 +1,2 @@ +gitlint: checking commit message... +gitlint: OK (no violations in commit message) diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_violations_1_stderr b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_violations_1_stderr new file mode 100644 index 0000000..1404f4a --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_violations_1_stderr @@ -0,0 +1,2 @@ +1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: Test hook stdin tïtle" +3: B6 Body message is missing diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_violations_1_stdout b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_violations_1_stdout new file mode 100644 index 0000000..5d3f1fc --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_stdin_violations_1_stdout @@ -0,0 +1,5 @@ +gitlint: checking commit message... +----------------------------------------------- +gitlint: Your commit message contains the above violations. +Continue with commit anyways (this keeps the current commit message)? [y(es)/n(no)/e(dit)] +Aborted! diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_yes_1_stderr b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_yes_1_stderr new file mode 100644 index 0000000..da6f874 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_yes_1_stderr @@ -0,0 +1,2 @@ +1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: höok yes" +3: B6 Body message is missing diff --git a/gitlint/tests/expected/cli/test_cli_hooks/test_hook_yes_1_stdout b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_yes_1_stdout new file mode 100644 index 0000000..bb753b0 --- /dev/null +++ b/gitlint/tests/expected/cli/test_cli_hooks/test_hook_yes_1_stdout @@ -0,0 +1,4 @@ +gitlint: checking commit message... +----------------------------------------------- +gitlint: Your commit message contains the above violations. +Continue with commit anyways (this keeps the current commit message)? [y(es)/n(no)/e(dit)] \ No newline at end of file diff --git a/gitlint/tests/expected/test_cli/test_contrib_1 b/gitlint/tests/expected/test_cli/test_contrib_1 deleted file mode 100644 index ea5d353..0000000 --- a/gitlint/tests/expected/test_cli/test_contrib_1 +++ /dev/null @@ -1,3 +0,0 @@ -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: "Test tïtle" -1: CT1 Title does not follow ConventionalCommits.org format 'type(optional-scope): description': "Test tïtle" diff --git a/gitlint/tests/expected/test_cli/test_debug_1 b/gitlint/tests/expected/test_cli/test_debug_1 deleted file mode 100644 index 612f78e..0000000 --- a/gitlint/tests/expected/test_cli/test_debug_1 +++ /dev/null @@ -1,102 +0,0 @@ -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 Configuration -config-path: {config_path} -[GENERAL] -extra-path: None -contrib: [] -ignore: title-trailing-whitespace,B2 -ignore-merge-commits: False -ignore-fixup-commits: True -ignore-squash-commits: True -ignore-revert-commits: True -ignore-stdin: False -staged: False -verbosity: 1 -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,bögus - 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 3 commit(s) -DEBUG: gitlint.lint Linting commit 6f29bf81a8322a04071bb794666e48c443a90360 -DEBUG: gitlint.lint Commit Object ---- Commit Message ---- -commït-title1 - -commït-body1 ---- Meta info --------- -Author: test åuthor1 -Date: 2016-12-03 15:28:15 +0100 -is-merge-commit: False -is-fixup-commit: False -is-squash-commit: False -is-revert-commit: False -Branches: ['commit-1-branch-1', 'commit-1-branch-2'] -Changed Files: ['commit-1/file-1', 'commit-1/file-2'] ------------------------ -DEBUG: gitlint.lint Linting commit 25053ccec5e28e1bb8f7551fdbb5ab213ada2401 -DEBUG: gitlint.lint Commit Object ---- Commit Message ---- -commït-title2. - -commït-body2 ---- Meta info --------- -Author: test åuthor2 -Date: 2016-12-04 15:28:15 +0100 -is-merge-commit: False -is-fixup-commit: False -is-squash-commit: False -is-revert-commit: False -Branches: ['commit-2-branch-1', 'commit-2-branch-2'] -Changed Files: ['commit-2/file-1', 'commit-2/file-2'] ------------------------ -DEBUG: gitlint.lint Linting commit 4da2656b0dadc76c7ee3fd0243a96cb64007f125 -DEBUG: gitlint.lint Commit Object ---- Commit Message ---- -föo -bar ---- Meta info --------- -Author: test åuthor3 -Date: 2016-12-05 15:28:15 +0100 -is-merge-commit: False -is-fixup-commit: False -is-squash-commit: False -is-revert-commit: False -Branches: ['commit-3-branch-1', 'commit-3-branch-2'] -Changed Files: ['commit-3/file-1', 'commit-3/file-2'] ------------------------ -DEBUG: gitlint.cli Exit Code = 6 \ No newline at end of file diff --git a/gitlint/tests/expected/test_cli/test_input_stream_1 b/gitlint/tests/expected/test_cli/test_input_stream_1 deleted file mode 100644 index 4326729..0000000 --- a/gitlint/tests/expected/test_cli/test_input_stream_1 +++ /dev/null @@ -1,3 +0,0 @@ -1: T2 Title has trailing whitespace: "WIP: tïtle " -1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: tïtle " -3: B6 Body message is missing diff --git a/gitlint/tests/expected/test_cli/test_input_stream_debug_1 b/gitlint/tests/expected/test_cli/test_input_stream_debug_1 deleted file mode 100644 index 4326729..0000000 --- a/gitlint/tests/expected/test_cli/test_input_stream_debug_1 +++ /dev/null @@ -1,3 +0,0 @@ -1: T2 Title has trailing whitespace: "WIP: tïtle " -1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: tïtle " -3: B6 Body message is missing diff --git a/gitlint/tests/expected/test_cli/test_input_stream_debug_2 b/gitlint/tests/expected/test_cli/test_input_stream_debug_2 deleted file mode 100644 index a9028e1..0000000 --- a/gitlint/tests/expected/test_cli/test_input_stream_debug_2 +++ /dev/null @@ -1,71 +0,0 @@ -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 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: False -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 Stdin data: 'WIP: tïtle -' -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: tïtle ---- Meta info --------- -Author: 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 = 3 \ No newline at end of file diff --git a/gitlint/tests/expected/test_cli/test_lint_multiple_commits_1 b/gitlint/tests/expected/test_cli/test_lint_multiple_commits_1 deleted file mode 100644 index be3288b..0000000 --- a/gitlint/tests/expected/test_cli/test_lint_multiple_commits_1 +++ /dev/null @@ -1,8 +0,0 @@ -Commit 6f29bf81a8: -3: B5 Body message is too short (12<20): "commït-body1" - -Commit 25053ccec5: -3: B5 Body message is too short (12<20): "commït-body2" - -Commit 4da2656b0d: -3: B5 Body message is too short (12<20): "commït-body3" diff --git a/gitlint/tests/expected/test_cli/test_lint_multiple_commits_config_1 b/gitlint/tests/expected/test_cli/test_lint_multiple_commits_config_1 deleted file mode 100644 index 1bf0503..0000000 --- a/gitlint/tests/expected/test_cli/test_lint_multiple_commits_config_1 +++ /dev/null @@ -1,6 +0,0 @@ -Commit 6f29bf81a8: -3: B5 Body message is too short (12<20): "commït-body1" - -Commit 4da2656b0d: -1: T3 Title has trailing punctuation (.): "commït-title3." -3: B5 Body message is too short (12<20): "commït-body3" diff --git a/gitlint/tests/expected/test_cli/test_lint_staged_msg_filename_1 b/gitlint/tests/expected/test_cli/test_lint_staged_msg_filename_1 deleted file mode 100644 index 9a9091b..0000000 --- a/gitlint/tests/expected/test_cli/test_lint_staged_msg_filename_1 +++ /dev/null @@ -1,2 +0,0 @@ -1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: msg-filename tïtle" -3: B6 Body message is missing diff --git a/gitlint/tests/expected/test_cli/test_lint_staged_msg_filename_2 b/gitlint/tests/expected/test_cli/test_lint_staged_msg_filename_2 deleted file mode 100644 index 3e5dcb6..0000000 --- a/gitlint/tests/expected/test_cli/test_lint_staged_msg_filename_2 +++ /dev/null @@ -1,70 +0,0 @@ -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 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: msg-filename tïtle ---- Meta info --------- -Author: föo user -Date: 2020-02-19 12:18:46 +0100 -is-merge-commit: False -is-fixup-commit: False -is-squash-commit: False -is-revert-commit: False -Branches: ['my-branch'] -Changed Files: ['commit-1/file-1', 'commit-1/file-2'] ------------------------ -DEBUG: gitlint.cli Exit Code = 2 \ No newline at end of file diff --git a/gitlint/tests/expected/test_cli/test_lint_staged_stdin_1 b/gitlint/tests/expected/test_cli/test_lint_staged_stdin_1 deleted file mode 100644 index 4326729..0000000 --- a/gitlint/tests/expected/test_cli/test_lint_staged_stdin_1 +++ /dev/null @@ -1,3 +0,0 @@ -1: T2 Title has trailing whitespace: "WIP: tïtle " -1: T5 Title contains the word 'WIP' (case-insensitive): "WIP: tïtle " -3: B6 Body message is missing diff --git a/gitlint/tests/expected/test_cli/test_lint_staged_stdin_2 b/gitlint/tests/expected/test_cli/test_lint_staged_stdin_2 deleted file mode 100644 index 03fd8c3..0000000 --- a/gitlint/tests/expected/test_cli/test_lint_staged_stdin_2 +++ /dev/null @@ -1,72 +0,0 @@ -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 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: tïtle -' -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: tïtle ---- Meta info --------- -Author: föo user -Date: 2020-02-19 12:18:46 +0100 -is-merge-commit: False -is-fixup-commit: False -is-squash-commit: False -is-revert-commit: False -Branches: ['my-branch'] -Changed Files: ['commit-1/file-1', 'commit-1/file-2'] ------------------------ -DEBUG: gitlint.cli Exit Code = 3 \ No newline at end of file -- cgit v1.2.3