Code::T...::Result(3)
β¨ NAME β¨
Okay so this is the manual page for Code::TidyAll::Result β literally the result returned from processing a file/source. The manual name folded up top is Code::T...::Result(3), from the User Contributed Perl Documentation, and itβs giving βsmall object, big main character energyβ π
.
π VERSION π
version 0.84 β thatβs the version, bestie, no cap.
π¦ SYNOPSIS π¦
my $ct = Code::TidyAll->new(...);
my $result = $ct->process_file($file);
if ($result->error) {
...
}
πΈ DESCRIPTION πΈ
This class represents the result of Code::TidyAll->process_file and Code::TidyAll->process_file β yes, the original page lists that same thing twice, and Iβm not gonna βfixβ it for you π. A list of these is returned from " Code::TidyAll-"process_paths >> β thatβs the exact weird-looking text on the page, so Iβm keeping it character for character, iykyk.
π METHODS π
This class provides the following methods:
β $result->path β
The path that was processed, relative to the root (e.g. lib/Foo.pm).
β $result->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.
β $result->orig_contents β
Contains the original contents if state is 'tidied' and with some errors (like when a file needs tidying in check-only mode).
β $result->new_contents β
Contains the new contents if state is 'tidied'.
β $result->error β
Contains the error message if state is 'error'.
β $result->ok β
Returns true iff state is not 'error'.
π«Ά SUPPORT π«Ά
Bugs may be submitted at <https://github.com/houseabsolute/perl-code-tidyall/issues>.
π§ SOURCE π§
The source code repository for Code-TidyAll can be found at <https://github.com/houseabsolute/perl-code-tidyall>.
π AUTHORS π
- Jonathan Swartz
<swartz@pobox.com> - Dave Rolsky
<autarch@urth.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2011 - 2023 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.
The full text of the license can be found in the LICENSE file included with this distribution.
And thatβs the whole page, bestie π«Ά βperl v5.42.0, dated2024-03-08, forCode::T...::Result(3). Slay π β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Code-TidyAll 0.840.0-bp160.1.4 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms