This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
rpmlint.conf.py
166 lines (139 loc) · 6.21 KB
/
rpmlint.conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# TODO: remove this file in favor of .toml one.
from Config import *
# Not sure what this number does, but we need some threshold that we'd like to
# avoid crossing.
setOption("BadnessThreshold", 42)
# Ignore documentation issues.
addFilter('no-manual-page-for-binary')
addFilter('no-documentation')
addFilter('name-repeated-in-summary')
# Ignore spelling errors unilt there's a support for custom dictionaries.
# TODO: add such support.
addFilter('spelling-error')
# Ignore unversioned bundled provides.
addFilter(r'unversioned-explicit-provides bundled\([a-z\-]+\)')
# Don't care about groups.
addFilter('non-standard-group')
# Not sure what to do with those.
# TODO: enforce
addFilter('crypto-policy-non-compliance-openssl')
# Allow devel dependencies in golang test packages,
addFilter('golang-.*-test.x86_64: W: devel-dependency')
# Allow statically linled binaries
addFilter('statically-linked-binary')
# Some packages may want to have empty files.
addFilter('zero-length')
# It's ok to obsolete whole packages
addFilter('unversioned-explicit-obsoletes')
# There's something weird with this warning
addFilter('incoherent-version-in-changelog')
# This is also fine - examples don't have to be executable.
addFilter('script-without-shebang')
# Allow certificates in tests:
addFilter('pem-certificate .*/test(data|s)/.*')
# Ignore invalid url problems:
# This is external - will be discovered and fixed on rebiuild.
addFilter('invalid-url')
# Ignore all lint warnings in submodules:
addFilter('third_party/submodules/')
# Ignore all lint warnings in symlinks from submodules.
addFilter('SPECS/cmake.spec')
addFilter('cryptopp(-(progs|devel))?.x86_64')
addFilter(r'grub2\.(x86_64|src|spec)')
addFilter(r'grub2-(tools|debuginfo|efi|efi-modules)\.x86_64')
addFilter('libev-devel.x86_64')
addFilter('SPECS/libcomps.spec')
addFilter('SPECS/os-prober.spec')
addFilter('perl-common-sense.x86_64')
addFilter('perl-Capture-Tiny.spec')
addFilter('perl-GD.x86_64')
addFilter(r'perl-Mojolicious\.(src|spec)')
addFilter('perl-Params-Util.x86_64')
addFilter('perl-Pod-Coverage.spec')
addFilter('perl-Software-License\.(src|spec)')
addFilter('perl-Sub-Exporter\.(src|spec)')
addFilter('perl-Sub-Install.src')
addFilter('perl-Pod-Coverage.src')
addFilter('perl-Test-Pod\.(src|spec)')
addFilter('perl-TermReadKey\.(x86_64|src)')
addFilter('perl-Test-Pod\.(src|spec)')
addFilter('perl-Text-Template.noarch')
addFilter('perl-threads.x86_64')
addFilter('pyOpenSSL(-doc)?\.(noarch|spec)')
addFilter('python(2|3)?-hypothesis\.(src|noarch)')
addFilter('python(2|3)-dialog.noarch')
addFilter('python-configargparse.spec')
addFilter('SPECS/python-iniparse.spec')
addFilter('python-mock.spec')
addFilter('python-ndg_httpsclient\.(src|spec)')
addFilter('python-parsedatetime.spec')
addFilter('python-psutil\.(spec|x86_64)')
addFilter('python-pyrfc3339.src')
addFilter('python(2|3)?-rpm-macros\.(noarch|src)')
addFilter('python3?-simplejson\.(x86_64|src)')
addFilter('python-srpm-macros.noarch')
addFilter('python-twisted.x86_64')
addFilter('python-zbase32\.(spec|noarch)')
addFilter('python3?-zope-event\.(noarch|spec|src)')
addFilter('pyutil\.(noarch|src|spec)')
addFilter('yum\.(spec|src)')
# Python is mostly third-party and has lots of warnings.
# TODO: clean those up.
addFilter('SPECS/python.spec')
addFilter('SPECS/python3.spec')
addFilter('third_party/subtrees/python/python.spec')
addFilter('third_party/subtrees/python3/python3.spec')
addFilter('python-libs.x86_64')
addFilter('python-debuginfo.x86_64')
addFilter('python-libs.x86_64')
addFilter('python-devel.x86_64')
addFilter('python-macros.noarch')
addFilter('python.x86_64')
addFilter('python3?.src:[0-9]+: W: hardcoded-library-path')
addFilter('python.src: W: %ifarch-applied-patch Patch131')
addFilter('python.src:[0-9]+: W: unversioned-explicit-provides')
addFilter('python.src: W: strange-permission pythondeps.sh')
# RPM is special, let's ignore warnings from it.
addFilter('SPECS/rpm.spec')
addFilter('third_party/subtrees/rpm/rpm.spec')
## Perl
# Perl packages are weird and often don't have -devel part.
addFilter('perl-Tk.x86_64: W: devel-file-in-non-devel-package')
# Some of them also depend on perl-devel
addFilter('perl-ExtUtils-Miniperl.noarch: W: devel-dependency')
# Perl-Tk has weird deps
addFilter('perl-Tk.spec:63: W: comparison-operator-in-deptoken')
# Not sure what version that would be.
addFilter('perl.spec:[0-9]+: W: unversioned-explicit-provides perl\(IO::Uncompress::Bunzip2\)')
addFilter('perl.spec:[0-9]+: W: unversioned-explicit-provides %perl_compat')
# Ok to depend on perl-devel:
addFilter('devel-dependency perl-devel')
## Libcomps
# URL broken :(
addFilter('libcomps.spec: W: invalid-url Source0: https://github.com/midnightercz/libcomps/libcomps-0.1.7.tar.gz')
## Python-pip
addFilter('python(3|2)?-pip.noarch: W: non-executable-script /usr/lib/python.\../site-packages/pip/_vendor/requests/packages/chardet/chardetect.py')
## Cython
# There's no -devel package.
addFilter('(python3-)?Cython.x86_64: W: devel-file-in-non-devel-package')
# false-positives
addFilter('(python3-)?Cython.x86_64: W: non-executable-script /usr/lib64/python(2|3)\.[0-9]/site-packages/cython.py')
addFilter('(python3-)?Cython.x86_64: W: non-executable-script /usr/lib64/python(2|3)\.[0-9]/site-packages/Cython/Build/Cythonize.py')
addFilter('(python3-)?Cython.x86_64: W: non-executable-script /usr/lib64/python[0-9]\.[0-9]/site-packages/Cython/Debugger/Cygdb.py')
addFilter('(python3-)?Cython.x86_64: W: non-executable-script /usr/lib64/python[0-9]\.[0-9]/site-packages/Cython/Debugger/libpython.py')
## Perl
addFilter('perl\.(spec|src): W: %ifarch-applied-patch Patch3: perl-5.8.0-libdir64.patch')
addFilter('perl\.(src|spec): W: invalid-license')
addFilter('perl.spec:[0-9]+: W: unversioned-explicit-provides')
addFilter('perl-threads.x86_64: W: unstripped-binary-or-object')
## Python-ply
# cpython stuff:
addFilter('python3?-ply.noarch: W: python-bytecode-without-source.*cpython.*')
## libsolv
addFilter('libsolv.x86_64: W: shared-lib-calls-exit')
# Python-cffi
addFilter('python3?-cffi.x86_64: W: devel-file-in-non-devel-package')
addFilter('python3-cffi.x86_64: W: unstripped-binary-or-object')
# golang packages:
addFilter('golang-googlecode-goprotobuf.x86_64: W: unstripped-binary-or-object')
addFilter('golang-github-odeke-em-drive.spec:[0-9]+: W: rpm-buildroot-usage')