diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-02-06 10:42:08 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-02-06 10:42:08 -0800 |
commit | ad303f1d22a7ed922197bce16ad74d1ed73e9b10 (patch) | |
tree | c2eefc2ea854b29fc43bbdd416c43169ccd7637b /packaging/config | |
download | rpmlint-tizen-ad303f1d22a7ed922197bce16ad74d1ed73e9b10.tar.gz rpmlint-tizen-ad303f1d22a7ed922197bce16ad74d1ed73e9b10.tar.bz2 rpmlint-tizen-ad303f1d22a7ed922197bce16ad74d1ed73e9b10.zip |
initial
Diffstat (limited to 'packaging/config')
-rw-r--r-- | packaging/config | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/packaging/config b/packaging/config new file mode 100644 index 0000000..d5cf36a --- /dev/null +++ b/packaging/config @@ -0,0 +1,112 @@ +# -*- 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", 1000) + +# score table +setBadness('arch-dependent-file-in-usr-share', 590) +setBadness('infopage-not-gzipped', 540) +setBadness('wrong-script-interpreter', 533) +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('suse-policy-kmp-missing-supplements', 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) +setBadness('suse-filelist-forbidden', 10000) +setBadness('suse-filelist-forbidden-sysconfig', 10000) +setBadness('suse-filelist-forbidden-perl-dir', 10000) +setBadness('suse-filelist-forbidden-backup-file', 10000) +#setBadness('suse-filelist-forbidden-devel-in-lib', 10000) +setBadness('suse-filelist-forbidden-yast2', 10000) +setBadness('suse-filelist-forbidden-srv', 10000) +setBadness('suse-filelist-forbidden-games', 10000) +setBadness('suse-filelist-forbidden-noarch', 10000) +setBadness('suse-filelist-forbidden-debuginfo', 10000) +setBadness('suse-filelist-forbidden-locale', 10000) +setBadness('suse-filelist-forbidden-xorg', 10000) +setBadness('suse-filelist-forbidden-suseconfig', 10000) +# too many of those still. need cleanup +#setBadness('suse-filelist-forbidden-fhs23', 10000) +setBadness('info-dir-file', 10000) + +setBadness('suse-dbus-unauthorized-service', 10000) +setBadness('non-position-independent-executable', 10000) + +setFilterException('suse-dbus-unauthorized-service') +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') |