NAME

Code::TidyAll::Result - Result returned from Code::TidyAll::process_file

VERSION

version 0.02

SYNOPSIS

my $ct = Code::TidyAll->new(...);
my $result = $ct->process_file($file);
if ($result->error) {
   ...
}

DESCRIPTION

Represents the result of Code::TidyAll::process_file. A list of these is returned from Code::TidyAll::process_files.

METHODS

state

A string, one of

no_match - No plugins matched this file
cached - Cache hit (file had not changed since last processed)
error - An error occurred while applying one of the plugins
checked - File was successfully checked and did not change
tidied - File was successfully checked and changed
error

Returns true iff state is 'error'

ok

Returns true iff state is not 'error'

SEE ALSO

Code::TidyAll

AUTHOR

Jonathan Swartz <swartz@pobox.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Jonathan Swartz.

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