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

remove perlcritic -5 warnings #22

Closed
wants to merge 1 commit into from
Closed

Conversation

mishin
Copy link

@mishin mishin commented Mar 21, 2015

Hi, Guys, super project,
so, I think 1 as last value of module is criitcal
and return for function

@karenetheridge
Copy link

These all seem like silly and unnecessary changes. A module only needs to return a true value; it doesn't need to be 1.

@charsbar
Copy link

Thanks for requesting but I agree with Karen. Won't merge this.

@charsbar charsbar closed this Mar 22, 2015
@mishin
Copy link
Author

mishin commented Mar 22, 2015

Well, guys, I agree with you, it's very little bound, but ok.
I just want to know how calculate
package_version_matches_dist_version
and
is_prereq
for http://cpants.cpanauthors.org/author/MISHIN

@mishin
Copy link
Author

mishin commented Mar 22, 2015

thanks

charsbar added a commit to cpants/Module-CPANTS-SiteKwalitee that referenced this pull request Mar 22, 2015
@charsbar
Copy link

@mishin, forget about is_prereq, which is something you can't make green by yourself (and thus, should be marked and shown differently from other metrics, maybe).

As for the package_version_matches_dist_version, it is because your version number is not safe and may lose important bit while calculating. See the following.

perl -E 'say version->new("5.18.1.0.35")->numify'  # 5.018001000033
perl -E 'say version->new("5.018001000033")'       # 5.018001000033
perl -E 'say version->new(5.018001000033)'         # 5.018001 (oops)

So, it was a bug in Module::CPANTS::SiteKwalitee, and was fixed by cpants/Module-CPANTS-SiteKwalitee@7dd3aa6 (thanks!)

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

3 participants