Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Rings:1-MinimalX
rpmlint
suse-whitelist-opensuse.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File suse-whitelist-opensuse.diff of Package rpmlint
From ceebc0de2c3a9bb1663418d75a4b0de1d15740b2 Mon Sep 17 00:00:00 2001 From: Dirk Mueller <dirk@dmllr.de> Date: Sun, 1 Oct 2017 14:06:31 +0200 Subject: [PATCH] Lower false-positives on summary-not-capitalized Allow some 'names' at the beginning of the summary to be non-capitalized. --- TagsCheck.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/TagsCheck.py b/TagsCheck.py index ea131e3..d3da24c 100644 --- a/TagsCheck.py +++ b/TagsCheck.py @@ -397,6 +397,9 @@ BAD_WORDS = { 'xwindows': 'X' } +CAPITALIZED_IGNORE_LIST = ( + 'jQuery', 'openSUSE', 'wxWidgets', 'a', 'an', 'uWSGI') + DEFAULT_INVALID_REQUIRES = ('^is$', '^not$', '^owned$', '^by$', '^any$', '^package$', r'^libsafe\.so\.') @@ -911,7 +914,8 @@ class TagsCheck(AbstractCheck.AbstractCheck): spell_check(pkg, summary, 'Summary(%s)', lang, ignored_words) if '\n' in summary: printError(pkg, 'summary-on-multiple-lines', lang) - if summary[0] != summary[0].upper(): + if (summary[0] != summary[0].upper() and + summary.partition(' ')[0] not in CAPITALIZED_IGNORE_LIST): printWarning(pkg, 'summary-not-capitalized', lang, summary) if summary[-1] == '.': printWarning(pkg, 'summary-ended-with-dot', lang, summary) -- 2.14.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor