Update rpmlintrc for rpmlint 2

All rules removed (they were being reported as unused).
New rules added.
This commit is contained in:
Miro Hrončok 2022-10-13 14:33:46 +02:00
parent 87598673b1
commit 165a539450

View File

@ -1,9 +1,14 @@
# we have extra tokens at the end of %endif/%else directives, we consider them useful
addFilter(r'extra tokens at the end of %(endif|else) directive')
# let's not report duplicate __init__s
addFilter(r'W: files-duplicate .+__init__\.py ')
# specfile-errors are listed twice, once with reason and once without
# we filter out the empty ones
addFilter(r'\bpython-setuptools\.(src|spec): (E|W): specfile-error\s+$')
# setuptools and pkg_resources have duplicated vendored libraries
# we might want to de-duplicate this somehow in the future, but not yet
# regex a bit complex to allow arbitrary order
addFilter(r'W: files-duplicate .+/(setuptools/_vendor/.+ .+/pkg_resources|pkg_resources/_vendor/.+ .+/setuptools)/_vendor/')
# SPELLING ERRORS
addFilter(r'W: spelling-error .* en_US distutils ')
# When duplicate files are found, this errors is produced
# as long as we filter out the warnings, we need to filter the error as well
addFilter(r'E: files-duplicated-waste')
# no %doc in the wheel packages
addFilter(r'python-setuptools-wheel.noarch: (E|W): no-documentation')