App-LintPrereqs

 view release on metacpan or  search on metacpan

script/lint-prereqs  view on Meta::CPAN

 Baz=0.12

Sometimes there are also prerequisites that are detected by scan_prereqs, but
are false positives (L<Perl::PrereqScanner::Lite> sometimes does this because
its parser is simpler) or you know are already provided by some other modules.
So to make lint-prereqs ignore them:

 [Extras / lint-prereqs / assume-provided]
 Qux::Quux=0

You can also add a C<[versions]> section in your C<lint-prereqs.conf>
configuration containing minimum versions that you want for certain modules,
e.g.:

 [versions]
 Bencher=0.30
 Log::ger=0.19
 ...

then if there is a prereq specified less than the minimum versions,
C<lint-prereqs> will also complain.

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--extra-runtime-dir>=I<s@>

Add extra directories to scan for runtime requirements.

Can be specified multiple times.

=item B<--extra-runtime-dirs-json>=I<s>

Add extra directories to scan for runtime requirements (JSON-encoded).

See C<--extra-runtime-dir>.

=item B<--extra-test-dir>=I<s@>

Add extra directories to scan for test requirements.

Can be specified multiple times.

=item B<--extra-test-dirs-json>=I<s>

Add extra directories to scan for test requirements (JSON-encoded).

See C<--extra-test-dir>.

=item B<--fix>, B<-F>

Attempt to automatically fix the errors.

C<lint-prereqs> can attempt to automatically fix the errors by
adding/removing/moving prereqs in C<dist.ini>. Not all errors can be
automatically fixed. When modifying C<dist.ini>, a backup in C<dist.ini~> will be
created.


=item B<--no-core-prereqs>

If set to 0 (the default), will complain if there are prerequisites to core
modules. If set to 1, prerequisites to core modules are required just like other
modules.


=item B<--perl-version>=I<s>

Perl version to use (overrides scan_prereqs/dist.ini).

=item B<--scanner>=I<s>

Which scanner to use.

Default value:

 "regular"

Valid values:

 ["regular","lite","nqlite"]

C<regular> means L<Perl::PrereqScanner> which is PPI-based and is the slowest
but has the most complete support for Perl syntax.

C<lite> means L<Perl::PrereqScanner::Lite> has uses an XS-based lexer and is
the fastest but might miss some Perl syntax (i.e. miss some prereqs) or crash if
given some weird code.

C<nqlite> means L<Perl::PrereqScanner::NotQuiteLite> which is faster than
C<regular> but not as fast as C<lite>.


=back

=head2 Configuration options

=over

=item B<--config-path>=I<s>, B<-c>

Set path to configuration file.

Can actually be specified multiple times to instruct application to read from
multiple configuration files (and merge them).


=item B<--config-profile>=I<s>, B<-P>

Set configuration profile to use.

A single configuration file can contain profiles, i.e. alternative sets of
values that can be selected. For example:

 [profile=dev]
 username=foo



( run in 0.870 second using v1.01-cache-2.11-cpan-39bf76dae61 )