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

FindModules: skip blib #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

dolmen
Copy link
Member

@dolmen dolmen commented Oct 5, 2013

Kwalitee::FindModules: Do not look in blib/.

PS: I am in the CPANTS Github org, but I don't have a commit bit on this repo. Is it intended?

When running this metric with Test::Kwalitee the blib/ dir usually
exists with copies of the modules that will be installed. Those copies
must be ignored.
@karenetheridge
Copy link

what's wrong with looking in blib? that's where built files are going to be, after running make or ./Build. Better IMO would be to look first for files in blib, and then fall back to lib if the dir doesn't exist or is empty.

@dolmen
Copy link
Member Author

dolmen commented Apr 13, 2014

I think that I did this patch because when CPANTS analyses the distribution content a blib dir is not expected. It would be safer if the behaviour by the CPANTS site analyzer or in a development environment environment (Test::Kwalitee) are the same.

@karenetheridge
Copy link

@dolmen: yes that makes sense. We could also use the MANIFEST file (if it exists, e.g. the analyzer isn't being run in a bare repo that uses something like Dist::Zilla) for a guide as to what files we can look at, and which to ignore.

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.

2 participants