Skip to content
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

Apply perlcritic rule for useless interpolation of literal string #5448

Merged
merged 1 commit into from Feb 2, 2024

Conversation

b10n1k
Copy link
Contributor

@b10n1k b10n1k commented Feb 1, 2024

This is propably the biggest load of files which should adapt to the rule which force single quotes when string doesnt need interpolation.
Includes also some minor changes for Hash key with quotes but not all of them.

https://progress.opensuse.org/issues/138416

@b10n1k b10n1k requested review from okurz, Martchus and perlpunk and removed request for okurz and Martchus February 1, 2024 16:59
@@ -193,7 +193,7 @@ sub _progress_monitior ($ua, $tx) {
$last_updated = time;
if ($progress < $current) {
$progress = $current;
print("\rDownloading $filename: ", $size == $len ? 100 : $progress . "%");
print('\rDownloading $filename: ', $size == $len ? 100 : $progress . '%');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be left unchanged.

Copy link
Contributor

@Martchus Martchus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except for the one occurrence mentioned by @perlpunk.

Copy link

codecov bot commented Feb 2, 2024

Codecov Report

Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (f1e432e) 98.37% compared to head (a63f08e) 98.37%.
Report is 1 commits behind head on master.

❗ Current head a63f08e differs from pull request most recent head 199dd6b. Consider uploading reports for the commit 199dd6b to get more accurate results

Files Patch % Lines
lib/OpenQA/WebAPI/Description.pm 0.00% 3 Missing ⚠️
lib/OpenQA/WebAPI/Auth/OpenID.pm 0.00% 2 Missing ⚠️
lib/OpenQA/WebAPI/Controller/Admin/JobGroup.pm 0.00% 2 Missing ⚠️
lib/OpenQA/Script/CloneJob.pm 50.00% 1 Missing ⚠️
lib/OpenQA/Shared/Controller/Session.pm 66.66% 1 Missing ⚠️
lib/OpenQA/WebAPI/Controller/API/V1/Worker.pm 80.00% 1 Missing ⚠️
lib/OpenQA/WebAPI/Controller/Admin/AuditLog.pm 0.00% 1 Missing ⚠️
lib/OpenQA/WebAPI/Controller/Admin/Influxdb.pm 75.00% 1 Missing ⚠️
lib/OpenQA/WebAPI/Controller/File.pm 66.66% 1 Missing ⚠️
lib/OpenQA/WebAPI/Controller/Running.pm 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5448   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         389      389           
  Lines       37744    37744           
=======================================
  Hits        37132    37132           
  Misses        612      612           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Martchus
Copy link
Contributor

Martchus commented Feb 2, 2024

I guess we can make an exception for "92.63% of diff hit (target 100.00%)" here. The changed lines look simple enough.

This comment was marked as resolved.

@okurz
Copy link
Member

okurz commented Feb 2, 2024

handling the conflict resolution and merge manually

This is propably the biggest load of files which should adapt to
the rule which force single quotes when string doesnt need
interpolation.
Includes also some minor changes for *Hash key with quotes* but
not all of them.
https://progress.opensuse.org/issues/138416

Signed-off-by: ybonatakis <ybonatakis@suse.com>
@okurz okurz merged commit ca5a8f4 into os-autoinst:master Feb 2, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants