Bug 1878806
| Summary: | Review Request: gitlint - Git commit message linter | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Stephen Kitt <skitt> |
| Component: | Package Review | Assignee: | Miguel Angel Ajo <majopela> |
| Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | majopela, package-review |
| Target Milestone: | --- | Flags: | majopela:
fedora-review+
|
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-09-15 13:26:25 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Stephen Kitt
2020-09-14 14:41:10 UTC
The spec looks good. The linter complains about a couple of things [majopela@bluehat Downloads]$ rpmlint gitlint* gitlint.src: W: spelling-error Summary(en_US) linter -> liner, liter, inter gitlint.src: W: spelling-error %description -l en_US whitespace -> white space, white-space, whites pace gitlint.src: W: spelling-error %description -l en_US mength -> length 1 packages and 1 specfiles checked; 0 errors, 3 warnings. I guess the whitespace and mength can be changed, why does it complain about linter? (In reply to Miguel Angel Ajo from comment #2) > The linter complains about a couple of things > > [majopela@bluehat Downloads]$ rpmlint gitlint* > gitlint.src: W: spelling-error Summary(en_US) linter -> liner, liter, inter I replaced that with “linting tool”, which is fine according to rpmlint. > gitlint.src: W: spelling-error %description -l en_US whitespace -> white > space, white-space, whites pace > gitlint.src: W: spelling-error %description -l en_US mength -> length Fixed, thanks! another question, BuildRequires: git-core Shouldint this be a Requires/too?, isn't it necessary for running and not for building? (In reply to Miguel Angel Ajo from comment #4) > another question, BuildRequires: git-core > > > Shouldint this be a Requires/too?, isn't it necessary for running and not > for building? Indeed, the shell/git module is supposed to check for git so it doesn’t end up being required for all sub-commands AFAICT, but in practice that doesn’t work: Traceback (most recent call last): File "/usr/local/bin/gitlint", line 5, in <module> from gitlint.cli import cli File "/usr/local/lib/python3.8/site-packages/gitlint/cli.py", line 20, in <module> from gitlint.git import GitContext, GitContextError, git_version File "/usr/local/lib/python3.8/site-packages/gitlint/git.py", line 4, in <module> from gitlint import shell as sh File "/usr/local/lib/python3.8/site-packages/gitlint/shell.py", line 13, in <module> from sh import git # pylint: disable=unused-import,import-error ImportError: cannot import name 'git' from 'sh' (/usr/local/lib/python3.8/site-packages/sh.py) Fixed in the spec. Thanks [majopela@bluehat Downloads]$ rpmlint gitlint.spec 0 packages and 1 specfiles checked; 0 errors, 0 warnings. I need to re-file this with my FAS address. |