Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/perl-ide/app-perlvars

Find unused variables in your Perl code
https://github.com/perl-ide/app-perlvars

Last synced: about 2 months ago
JSON representation

Find unused variables in your Perl code

Awesome Lists containing this project

README

        

[![Actions Status](https://github.com/perl-ide/App-perlvars/actions/workflows/dzil-build-and-test/badge.svg)](https://github.com/perl-ide/App-perlvars/actions)
[![codecov](https://codecov.io/gh/perl-ide/App-perlvars/branch/main/graph/badge.svg)](https://codecov.io/gh/perl-ide/App-perlvars)
[![Kwalitee status](https://cpants.cpanauthors.org/dist/App-perlvars.png)](https://cpants.cpanauthors.org/dist/App-perlvars)
[![GitHub tag](https://img.shields.io/github/tag/perl-ide/App-perlvars.svg)]()
[![Cpan license](https://img.shields.io/cpan/l/App-perlvars.svg)](https://metacpan.org/release/App-perlvars)

# NAME

App::perlvars - CLI tool to detect unused variables in Perl modules

# VERSION

version 0.000006

# DESCRIPTION

You probably don't want to use this class directly. See [perlvars](https://metacpan.org/pod/perlvars) for
documentation on how to use the command line interface.

## ignore\_file

The path to a file containing a list of variables to ignore on a per-package
basis. The pattern is `Module::Name = $variable` or `Module::Name = qr/some
regex/`. For example:

Local::Unused = $unused
Local::Unused = $one
Local::Unused = $two
Local::Unused = qr/^\$.*hree$/

## validate\_file

Path to a file which will be validated. Returns an exit code, an error message
and a list of unused variables.

# AUTHOR

Olaf Alders

# COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by MaxMind, Inc.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.