From 165a539450bf6a0a6fc37d083dd639cc55fd2aa2 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Oct 13 2022 12:34:04 +0000 Subject: Update rpmlintrc for rpmlint 2 All rules removed (they were being reported as unused). New rules added. --- diff --git a/python-setuptools.rpmlintrc b/python-setuptools.rpmlintrc index 8610fc2..0b224f8 100644 --- a/python-setuptools.rpmlintrc +++ b/python-setuptools.rpmlintrc @@ -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')