action #179975
opencoordination #127031: [saga][epic] openQA for SUSE customers
coordination #182387: [epic] More advanced Perl practices and packages to be future-proof
perlcritic openQA - Check more than just lib/ and use Perl::Critic::TooMuchCode
0%
Description
Motivation¶
We use a common code style for all our perl code.
TooMuchCode::ProhibitUnusedImport can check for unused module imports.
It also has ProhibitExtraStricture which seems better than our own implementation.
Acceptance criteria¶
- AC1: openQA perlcritic checks cover all directories with perl code
-
AC2: We use the policies from
Perl::Critic::TooMuchCode
- AC3: Superfluous implementations in os-autoinst-common are removed
Suggestions¶
- perl-Perl-Critic-TooMuchCode is currently being submitted to factory: https://build.opensuse.org/requests/1266850
It might have to be submitted to Leap additionally.
Updated by tinita about 2 months ago
- Copied from action #155191: Unify GitHub Actions for QA Projects - perlcritic in os-autoinst added
Updated by okurz about 2 months ago
- Status changed from New to Blocked
- Assignee set to okurz
- Target version set to Ready
Updated by okurz about 2 months ago
accepted. osc mr -m "Useful module for style checks we want to use for openQA" openSUSE:Factory perl-Perl-Critic-TooMuchCode openSUSE:Backports:SLE-15-SP6:Update
Updated by okurz 11 days ago
- Status changed from Blocked to Feedback
- Target version changed from Ready to future
https://build.opensuse.org/requests/1266955 was accepted but https://build.opensuse.org/package/show/openSUSE:Maintenance:18856/perl-Perl-Critic-TooMuchCode.openSUSE_Backports_SLE-15-SP6_Update looks like it's still open with
unresolvable: nothing provides perl(List::Util) >= 1.50, (got version 1.46_02 provided by perl-base-32bit), (got version 1.46_02 provided by perl-base), (got version 1.49 provided by perl-Scalar-List-Utils), nothing provides perl(Module::Build::Tiny) >= 0.39.0, (got version 0.039 provided by perl-Module-Build-Tiny), nothing provides perl(Scalar::Util) >= 1.50, (got version 1.46_02 provided by perl-base-32bit), (got version 1.46_02 provided by perl-base), (got version 1.49 provided by perl-Scalar-List-Utils)
so I assume this can't work for Leap 15 due to an older perl-base?
Updated by tinita about 13 hours ago ยท Edited
For the perl-Module-Build-Tiny dependency the following request should fix that:
https://build.opensuse.org/requests/1279870
For List::Util and Scalar::Util we would have to submit the latest perl-Scalar-List-Utils to Leap as well.
edit: and looking at the changelog for 1.50, it seems to e a good idea anyway.