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
|
# -*- python -*-
#
# Copyright (c) 2007, 2008 Dirk Mueller, Novell Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program (see the file COPYING); if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
#
################################################################
#
# Configuration for the rpmlint utility.
# Loaded before ~/.rpmlintrc
# $Id: config,v 1.39 2003/12/22 11:20:55 flepied Exp $
# This line is mandatory to access the configuration functions
from Config import *
setOption("BadnessThreshold", 2000)
setBadness('license-file-in-docs', 200)
setBadness('non-standard-group', 200)
setBadness('license-placeholder-not-allowed', 200)
setBadness('group-placeholder-not-allowed', 200)
setBadness('invalid-license', 200)
setBadness('dir-or-file-in-tmp', 200)
# score table
setBadness('arch-dependent-file-in-usr-share', 590)
setBadness('wrong-script-interpreter', 533)
setBadness('no-description-tag', 200)
setBadness('arch-independent-package-contains-binary-or-object', 499)
setBadness('library-without-ldconfig-postin', 300)
setBadness('library-without-ldconfig-postun', 300)
setBadness('shlib-fixed-dependency', 440)
setBadness('no-pkg-config-provides', 300)
# on x86, we want some libraries with non-pic code (mythtv, ffmpeg)
# setBadness('shlib-with-non-pic-code', 223)
setBadness('makefile-junk', 109)
setBadness('files-duplicated-waste', 100)
setBadness('summary-not-capitalized', 63)
setBadness('summary-ended-with-dot', 89)
setBadness('summary-too-long', 200)
setBadness('executable-docs', 60)
setBadness('spurious-executable-perm', 50)
setBadness('devel-file-in-non-devel-package', 50)
# check has some problems still (see discussion on opensuse-packagers)
#setBadness('missing-dependency-to-cron', 800)
setBadness('executable-docs', 900)
setBadness('binary-in-etc', 900)
setBadness('non-ghost-in-var-run', 1000)
setBadness('non-ghost-in-var-lock', 1000)
# too many failures for now
#setBadness('dir-or-file-in-tmp', 900)
#fatal checks
#setBadness('files-attr-not-set', 10000)
setBadness('percent-in-dependency', 10000)
setBadness('percent-in-obsoletes', 10000)
setBadness('percent-in-provides', 10000)
setBadness('percent-in-conflicts', 10000)
setBadness('invalid-pkgconfig-file', 10000)
setBadness('unversioned-explicit-self-provides', 10000)
setBadness('file-contains-buildroot', 10000)
setBadness('shlib-policy-name-error', 10000)
setBadness('hardlink-across-partition', 10000)
setBadness('hardlink-across-config-files', 10000)
setBadness('libtool-wrapper-in-package', 10000)
setBadness('libtool-wrapper-in-package', 10000)
setBadness('invalid-filepath-dependency', 10000)
setBadness('polkit-unauthorized-file', 10000)
setBadness('polkit-unauthorized-privilege', 10000)
setBadness('permissions-unauthorized-file', 10000)
setBadness('permissions-file-setuid-bit', 10000)
setBadness('permissions-world-writable', 10000)
# too many of those still. need cleanup
setBadness('info-dir-file', 10000)
#setBadness('non-position-independent-executable', 10000)
setFilterException('polkit-unauthorized-file')
setFilterException('polkit-unauthorized-privilege')
setFilterException('permissions-unauthorized-file')
setFilterException('permissions-file-setuid-bit')
setFilterException('non-position-independent-executable')
# to be enabled later
# setFilterException('shlib-policy-name-error')
|