Skip Menu |

This queue is for tickets about the Test-CPANfile CPAN distribution.

Report information
The Basics
Id: 127268
Status: rejected
Priority: 0/
Queue: Test-CPANfile

People
Owner: Nobody in particular
Requestors: PERLANCAR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Also check when cpanfile contains superfluous/extraneous dependencies
That is, declared dependencies that are not actually used. My utility App::LintPrereqs supports this but works on dist.ini instead of cpanfile. It also provides a way for user to express that a dependency is actually used even though not detected by scan_prereqs.
On Tue Oct 02 13:21:05 2018, PERLANCAR wrote: Show quoted text
> That is, declared dependencies that are not actually used. > > My utility App::LintPrereqs supports this but works on dist.ini > instead of cpanfile. It also provides a way for user to express that a > dependency is actually used even though not detected by scan_prereqs.
No, as a test module, it's not a desired feature because, as you know, cpanfile (especially one for an application) may contain hidden dependencies like XS modules to speed up PP alternatives. You can't tell which is necessary and which is leftover. If you are certain you don't need any extra module, you might want to replace cpanfile with the one generated by, say, scan-perl-prereqs-nqlite with "save-cpanfile" option, and it might be nice to add a feature to list hidden dependencies, as you do for your App::LintPrereqs.