yak1ex/Test-Kwalitee-Extra — pull request #4 by guillaumeaubert (2013-03-24 05:16:11+00:00)
Title: Account for modules in the no_index section of META.yml

Thank you for writing this module, it is a nice extension of Test::Kwalitee. I've already successfully used it on Perl::Critic::Git, but I'm having problems retrofitting DBIx::NinjaORM.

DBIx::NinjaORM uses an internal module (t/lib/LocalTest.pm) that I have specified as no_index in META.yml. As a result, it is not visible on MetaCPAN, and the following call in Extra.pm fails:

```
my $result = $mcpan->module($key);
```

This is however a valid module used internally by the distribution, and should not be treated as an external use.

With the attached commit, I'm proposing to identify packages in files listed in the no_index section of META.yml, and skipping those when examining external uses. I've tested the change successfully on DBIx::NinjaORM, and I tried to keep your coding style in this patch. Please let me know what you think!