suse-python3-naming-policy.diff
[platform/upstream/rpmlint.git] / config
1 # -*- python -*-
2
3 # Example configuration file for rpmlint.
4
5 # This line is mandatory to access the configuration functions
6 from Config import *
7
8 # Additional paths to look for checks.
9 # ------------------------------------
10
11 #addCheckDir("~/mandrake/rpmlint")
12
13 # Configure the checks if you don't want the default ones.
14 # --------------------------------------------------------
15
16 #addCheck("FHSCheck")
17 #addCheck("BinariesCheck")
18
19 # Configuration options used by the checks shipped with rpmlint.
20 # The values in the commented out setOption() calls represent default
21 # or typical example values for the option.
22 # -------------------------------------------------------------------
23
24 # Type: integer, default: -1 (less than 0 means disabled)
25 #setOption("BadnessThreshold", -1)
26
27 # When checking that various files that should be compressed are
28 # indeed compressed, look for this filename extension (no dot here).
29 # Type: string, default: "bz2"
30 #setOption("CompressExtension", "bz2")
31
32 # Exception list for dangling symlink checks.  The first in each pair
33 # is a regexp, and the second the package in which the target of the
34 # dangling symlink is shipped.
35 # Type: tuple of lists, default: (['consolehelper$', 'usermode-consoleonly'])
36 #setOption("DanglingSymlinkExceptions", ())
37
38 # Value for the Distribution tag.
39 # Type: string, default: "" (the empty string disables checking)
40 #setOption("Distribution", "")
41
42 # Base directory where to extract uninstalled packages while checking.
43 # Type: string, default: tempfile.gettempdir()
44 #setOption("ExtractDir", "/tmp")
45
46 # Standard "needs" values for non-XDG legacy menu items.
47 # Type: tuple of strings, default: ('gnome', 'icewm', 'kde', 'wmaker')
48 #setOption("ExtraMenuNeeds", ('gnome', 'icewm', 'kde', 'wmaker'))
49
50 # Words that must not exist in various tag values.
51 # Type: regexp, default: '' ('' effectively disables this check)
52 #setOption("ForbiddenWords", '')
53
54 # Exceptions for hardcoded library paths.
55 # Type: regexp, default: see DEFAULT_HARDCODED_LIB_PATH_EXCEPTIONS in SpecCheck
56 #setOption("HardcodedLibPathExceptions", '/lib/modules/')
57
58 # Accepted non-XDG legacy icon filenames.
59 # Type: regexp, default: '.*\.png$'
60 #setOption("IconFilename", '.*\.png$')
61
62 # Paths in which non-XDG legacy icons should be installed.  The first
63 # item in the tuples is a filesystem path, and the second the icon type.
64 # Type: tuple of string tuples, default: see DEFAULT_ICON_PATH in MenuCheck
65 #setOption("IconPath", ())
66
67 # Disallowed dependencies.
68 # Type: tuple of regexps, default: see DEFAULT_INVALID_REQUIRES in TagsCheck
69 #setOption("InvalidRequires", ())
70
71 # Strings to disallow in various URL tags.
72 # Type: regexp, default: '' ('' effectively disables this check)
73 #setOption("InvalidURL", '')
74
75 # Whether to allow packaging kernel modules in non-kernel packages.
76 # Type: boolean, default: True
77 #setOption("KernelModuleRPMsOK", True)
78
79 # Maximum line length for summaries and descriptions.
80 # Type: integer, default: 79
81 #setOption("MaxLineLength", 79)
82
83 # Type: tuple of string,tuple lists, default: see DEFAULT_LAUNCHERS in MenuCheck
84 #setOption("MenuLaunchers", ())
85
86 # Names of packages to treat as "meta" ones.
87 # Type: regexp, default: '^(bundle|task)-'
88 #setOption("MetaPackageRegexp", '^(bundle|task)-')
89
90 # Whether to enable checks that require networking.
91 # Type: boolean, default: False
92 #setOption("NetworkEnabled", False)
93
94 # Timeout for network operations in seconds.
95 # Type: integer, default: 10
96 #setOption("NetworkTimeout", 10)
97
98 # Value for the Packager tag.
99 # Type: regexp, default: '' ('' effectively disables this check)
100 #setOption("Packager", '')
101
102 # Type: boolean, default: True
103 #setOption("PerlVersionTrick", True)
104
105 # Assumed default version of Python if one cannot be determined from files.
106 # Type: string, default: None
107 #setOption("PythonDefaultVersion", None)
108
109 # Expected suffix in Release tags.
110 # Type: regexp, default: '' ('' effectively disables this check)
111 #setOption("ReleaseExtension", '')
112
113 # Group tag for games.
114 # Type: regexp, default: 'Games'
115 #setOption("RpmGamesGroup", 'Games')
116
117 # Doc files to which end of line and UTF-8 checks should not be applied.
118 # Type: regexp, default: \.(?:rtf|x?html?|svg|ml[ily]?)$'
119 #setOption("SkipDocsRegexp", '\.(?:rtf|x?html?|svg|ml[ily]?)$')
120
121 # Standard OS groups.
122 # Type: tuple of strings, default: see DEFAULT_STANDARD_GROUPS in FilesCheck
123 #setOption("StandardGroups", ())
124
125 # Standard OS users.
126 # Type: tuple of strings, see DEFAULT_STANDARD_USERS in FilesCheck
127 #setOption("StandardUsers", ())
128
129 # List of directories considered to be system default library search paths.
130 # Type: tuple of strings, default: see DEFAULT_SYSTEM_LIB_PATHS in BinariesCheck
131 #setOption("SystemLibPaths", ('/lib', '/lib64', '/usr/lib', '/usr/lib64'))
132
133 # Executables that must be compiled as position independent.
134 # Type: regex, default: None
135 #setOption("PieExecutables", '^/bin/(ping6?|su)$')
136
137 # Whether to want default start/stop runlevels specified in init scripts.
138 # Type: boolean, default: True
139 #setOption("UseDefaultRunlevels", True)
140
141 # Whether to use the Enchant spell checker (if available) for spell checking.
142 # Type: boolean, default: True
143 #setOption("UseEnchant", True)
144
145 # Whether an explicit Epoch should always be specified.
146 # Type: boolean, default: False
147 #setOption("UseEpoch", False)
148
149 # Whether jars should be indexed.
150 # Type: boolean, default: True
151 #setOption("UseIndexedJars", True)
152
153 # Whether symlinks between directories should be relative.
154 # Type: boolean, default: True
155 #setOption("UseRelativeSymlinks", True)
156
157 # Whether the UTF-8 character encoding should be used where applicable.
158 # Type: boolean, default: autodetected from environment
159 #setOption("UseUTF8", True)
160
161 # Whether %changelog entries should contain a version.
162 # Type: boolean, default: True
163 #setOption("UseVersionInChangelog", True)
164
165 # Whether init scripts must use /var/lock/subsys
166 # Type: boolean, default: True
167 #setOption("UseVarLockSubsys", True)
168
169 # Architecture dependent paths in which packages are allowed to install files
170 # even if they are all non-binary.
171 # Type: regexp, default: see BinariesCheck
172 #setOption("UsrLibBinaryException", '^/usr/lib(64)?/(perl|python|ruby)')
173
174 # Value for the BuildHost tag.
175 # Type: regexp, default '' ('' effectively disables this check)
176 #setOption("ValidBuildHost", '')
177
178 # Interpreters whose scriptlets are allowed to be empty.
179 # Type: tuple of strings, default: ('/sbin/ldconfig',)
180 #setOption("ValidEmptyShells", ('/sbin/ldconfig',))
181
182 # Values for the Group tag.
183 # Type: list of strings, default: extracted from GROUPS file shipped with rpm
184 #setOption("ValidGroups", [])
185
186 # Values for the License tag.
187 # Type: tuple of strings, default: see DEFAULT_VALID_LICENSES in TagsCheck
188 #setOption("ValidLicenses", ())
189
190 # Values for non-XDG legacy menu item sections.
191 # Type: tuple of strings, default: see DEFAULT_VALID_SECTIONS in MenuCheck
192 #setOption("ValidMenuSections", ())
193
194 # Package scriptlet interpreters.
195 # Type: tuple of strings, default: see DEFAULT_VALID_SHELLS in PostCheck
196 #setOption("ValidShells", ('/bin/sh', '/bin/bash'))
197
198 # Permissions for files in source packages.
199 # Type: tuple of modes, default: (0644, 0755)
200 #setOption("ValidSrcPerms", (0644, 0755))
201
202 # Value for the Vendor tag.
203 # Type: string, default: "" ("" effectively disables this check)
204 #setOption("Vendor", "")
205
206 # Man page warning category, passed to groff -w while checking man pages.
207 # See the groff(1) or troff(1) man pages for available categories.
208 # Type: string, default: 'mac'
209 #SetOption("ManWarningCategory", 'mac')
210
211 # Output filters.
212 # ---------------
213
214 #addFilter("E: .* no-signature")