Devel::FIXME::Rules::PerlFile - Support for rules stored as perl code in a file.
% vim ~/.fixme/rules.pl
The file in the SYNOPSIS, or the file specified by the FIXME_RULEFILE environment variable, needs to return an array reference, containing code references.
FIXME_RULEFILE
These code references are the rules that are applied as methods on the fixme object.
This is a really silly rules file, but it does show what you can do:
[ sub { my $self = shift; # discard any file that is writable (assume not checked in to SCM) return DROP unless -w $self->{file}; }, sub { my $self = shift; # any FIXME's in my dir are warned about return SHOUT if $self->{file} =~ m!my/src/dir/!; }, ];
The fixme object contains some fields. See Devel::FIXME's implementation.
Yuval Kogman <nothingmuch@woobling.org>
Copyright (c) 2004 Yuval Kogman. All rights reserved This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Devel::FIXME
To install Devel::FIXME, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::FIXME
CPAN shell
perl -MCPAN -e shell install Devel::FIXME
For more information on module installation, please visit the detailed CPAN module installation guide.