Actually, that should be fine. It will fail the task on rpmlint errors but not warnings, which is probably okay.