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

Fix conflict with Dist::Zilla::Plugin::PodCoverageTests #9

Closed

Conversation

greencoloured
Copy link

This module was causing the PodCoverageTests to fail as it was being detected and did not have any pod. To fix this I've made the existing comment into a Pod exception for the file.

@karenetheridge
Copy link
Member

=for *EVERYTHING* looks a bit odd -- how is this being parsed by the pod checker?

@greencoloured
Copy link
Author

greencoloured commented Sep 13, 2018

Dist::Zilla::Plugin::PodCoverageTests uses the Pod::Coverage::TrustPod module that define "trusted" pod for symbols using blocks like:

=begin Pod::Coverage

foo

=end Pod::Coverage

or

=for Pod::Coverage foo

It also defines the special pattern *EVERYTHING* to mean everything in the file to be trusted as covered. I'm afraid I misread the module's docs and didn't realise that the Pod::Coverage bit was required. The file passed anyway as it looks like all that is required for this file to pass is that it have any pod at all.

Though I still think the proper line should be included:

=for Pod::Coverage *EVERYTHING*

Meaning "for pod coverage everything in this file should be trusted".

Would you like the pull request updated?

@greencoloured
Copy link
Author

Another option would be to simply provide some pod and, should there be any changes later that require more coverage, reconsider.

Something like:

diff --git a/lib/Dist/Zilla/Plugin/Conflicts.pm b/lib/Dist/Zilla/Plugin/Conflicts.pm
index 5922efd..30c0db0 100644
--- a/lib/Dist/Zilla/Plugin/Conflicts.pm
+++ b/lib/Dist/Zilla/Plugin/Conflicts.pm
@@ -127,7 +127,11 @@ package # hide from PAUSE
 use strict;
 use warnings;
 
-# this module was generated with {{ ref($plugin) . ' ' . ($plugin->VERSION || '<self>') }}
+=pod
+
+this module was generated with {{ ref($plugin) . ' ' . ($plugin->VERSION || '<self>') }}
+
+=cut
 
 use Dist::CheckConflicts
     -dist      => '{{ $dist_name }}',

@karenetheridge
Copy link
Member

karenetheridge commented Sep 13, 2018 via email

@autarch
Copy link
Member

autarch commented Oct 20, 2018

Yes, a bit of POD saying what this module is for and how it was generated would be ideal.

@autarch
Copy link
Member

autarch commented Aug 15, 2020

@karenetheridge I pushed some changes to master that add some pod. Can you take a look?

@karenetheridge
Copy link
Member

This looks good. The distribution hasn't been released in a while -- how do you feel about doing that?

@autarch
Copy link
Member

autarch commented Apr 30, 2023

I just released v0.20. I will close this PR since the bug it addresses should now be fixed.

@autarch autarch closed this Apr 30, 2023
@karenetheridge
Copy link
Member

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants