Fix these by adding a default empty assignment:
osc/commandline.py:3382:62: E0606: Possibly using variable 'filter_pattern' before assignment (possibly-used-before-assignment)
osc/commandline.py:6692:18: E0606: Possibly using variable 'msg' before assignment (possibly-used-before-assignment)
osc/core.py:2051:23: E0606: Possibly using variable 'file_changed' before assignment (possibly-used-before-assignment)
These could probably be fixed by making the code easier to follow. By
silencing them for now and making the CI pass, it is easier to not
regress.
osc/commandline.py:3269:55: E0601: Using variable 'incident' before assignment (used-before-assignment)
osc/commandline.py:3276:55: E0601: Using variable 'priority' before assignment (used-before-assignment)
This is pylint not understanding that the try is for catching this case
and only importing when available:
osc/conf.py:77:4: E0401: Unable to import 'keyring' (import-error)
Doing the assignment conditionally doesn't make sense here, so move it
outside the condition.
osc/commandline.py:8311:15: E0606: Possibly using variable 'p' before assignment (possibly-used-before-assignment)
This always throws an exception, so anntotating it NoReturn allows
pylint to notice some exhaustive choice, removing this false errors:
osc/commandline.py:6581:78: E0606: Possibly using variable 'arch' before assignment (possibly-used-before-assignment)
The exception above would have already triggered otherwise. Thus
removing this pylint error:
osc/commandline.py:4371:38: E0601: Using variable 'package' before assignment (used-before-assignment)
This always throws an exception, so anntotating it NoReturn allows
pylint to notice some exhaustive choice, removing these false errors:
osc/commandline.py:2232:68: E0606: Possibly using variable 'dst_package' before assignment (possibly-used-before-assignment)
osc/commandline.py:2448:68: E0606: Possibly using variable 'dst_package' before assignment (possibly-used-before-assignment)
The job unit-ro is from a different file, so "needs" can not find it.
Remove it as there is no dependency.
An alternative would be to merge both files into one. It might save work
on some broken PRs.
Allow passing `--multibuild-package` or `-M` to the rpmlint command to
specify flavors for a multibuild package. This makes it consistent with
other commands, for example `buildlog`, where this option is similarly
used.