From Fedora Project Wiki
m (add anchor)
(add example link for rpmlintrc)
Line 7: Line 7:
{{anchor|whitelist}}
{{anchor|whitelist}}
= Whitelisting errors =
= Whitelisting errors =
You can whitelist errors that you believe don't apply to your package. task-rpmlint uses the same rpmlint config file as used by [[Package_maintenance_guide|fedpkg lint]], which is named <code><source_package_name>.rpmlintrc</code>. If there's such a file in your distgit repository, it will be used when <code>rpmlint</code> is executed as part of task-rpmlint.  
You can whitelist errors that you believe don't apply to your package. task-rpmlint uses the same rpmlint config file as used by [[Package_maintenance_guide|fedpkg lint]], which is named <code><source_package_name>.rpmlintrc</code>. If there's such a file in your distgit repository ([https://src.fedoraproject.org/rpms/python3/blob/master/f/python3.rpmlintrc example]), it will be used when <code>rpmlint</code> is executed as part of task-rpmlint.  


To test the config file locally, you can use  
To test the config file locally, you can use  

Revision as of 12:31, 31 May 2018

What is rpmlint?

Rpmlint performs many different checks regarding RPM package sanity. Task-rpmlint is a Taskotron wrapper around that tool that executes it on every new Koji build and shows the results in Bodhi.

How does rpmlint task work?

Rpmlint task downloads all RPMs (source and binary) that your package consists of and runs rpmlint on them.

Whitelisting errors

You can whitelist errors that you believe don't apply to your package. task-rpmlint uses the same rpmlint config file as used by fedpkg lint, which is named <source_package_name>.rpmlintrc. If there's such a file in your distgit repository (example), it will be used when rpmlint is executed as part of task-rpmlint.

To test the config file locally, you can use

rpmlint --file <source_package_name>.rpmlintrc <rpms>

or

fedpkg lint

(once PR 293 is merged and released).

Getting Help

If you have generic rpmlint-related questions, it's best to ask on devel list or fedora-devel IRC channel.

If you have troubles with task-rpmlint, please contact us.