New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add perlcritic to Travis with gentle severity #6294
Conversation
94660a8
to
6116761
Compare
1e29e3c
to
17a6fbb
Compare
17a6fbb
to
f43f64c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder with what change we lost perlcritic checks to be executed against each PR in the past …
6736caf
to
657b53a
Compare
There is a call to |
5c03882
to
5adfe76
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Do you have any example of the output if such check fails? As we don't want to confuse people.
@coolo do you have an idea regarding #6294 (review) and #6294 (comment) ? |
this is 2 years old - it's not too unlikely travis changed something in between :) |
@rwx788 for example if we would activate policy [BuiltinFunctions::ProhibitStringyEval] in
With a quick google search of the kind |
5adfe76
to
f3db164
Compare
@kraih WDYT? |
f3db164
to
28e4fa3
Compare
28e4fa3
to
d1ed194
Compare
d1ed194
to
43df0cc
Compare
@okurz My plan for openQA and os-autoinst is to use Perl::Critic::Freenode with severity 4 ( |
@kraih I see. I plan to extend the perl critic checks later and mentioned your comment in https://progress.opensuse.org/issues/44075#note-2 |
In order to add perlcritic to Travis (run succesfully
make perlcritic
in our ci) and start to introduce some new policies we need:--severity gentle
or--severity 5
according documentation) and modify tests accordingly. This are potential modification in files needed to successful pass a default call tomake perlcritic
.I had to exclude for the moment policy
ProhibitStringyEval
as I could not resolve v1 and v2 simply replacing them with{ }
due to in turn makes `make test' failing on importing modules..perlcriticrc
and setup max_nests where does not fail (fixing one level)git grep
is not producing any visual data except for the unnecessary user intervention so I added the option to be silent. Also I realized that we should not check os-autoinst as it is a different repo.Previous steps are reflected in different commits in case something potentially could go south.
Related ticket
https://progress.opensuse.org/issues/44165