Test::C...:TidyAll(3)
πΈ NAME πΈ
Test::Code::TidyAll β check that all your files are tidy and valid according to tidyall. This is the Test::Code::TidyAll(3) manual page in User Contributed Perl Documentation, and it is literally here to give your project a vibe check. π
π VERSION π
version 0.84 β yes bestie, that is the one. β¨
π SYNOPSIS π
Pop this into a file like t/tidyall.t:
#!/usr/bin/perl
use Test::Code::TidyAll;
tidyall_ok();
π¦ DESCRIPTION π¦
It uses Code::TidyAll's check_only mode to check that all the files in your project are in a tidied and valid state β i.e. that no plugins throw errors or would change the contents of the file. It does not actually modify any files. Iconic, non-destructive behavior. π
By default, we look for the config file tidyall.ini or .tidyallrc in the current directory and parent directories β which is generally the right place if you are running prove. Slay. π«Ά
When invoking Code::TidyAll, we pass mode => 'test' by default; see modes.
π EXPORTS π
This module exports one subroutine, and it is exported by default. The main character subroutine:
π tidyall_ok(...) π
Most options given to this subroutine will be passed along to the Code::TidyAll constructor. For example, if you don't want to use the tidyall cache and instead check all files every time:
tidyall_ok( no_cache => 1 );
or if you need to specify the config file:
tidyall_ok( conf_file => '/path/to/conf/file' );
By default, this subroutine will test every file that matches the config you specify. However, you can pass a files parameter as an array reference to override this, in which case only the files you specify will be tested. These files are still filtered based on the select and exclude rules defined in your config. No extra files sneaking in, bestie. π΅οΈβοΈ
π SEE ALSO π
tidyallβ the whole reason we are here, go look. π
π SUPPORT π
Bugs may be submitted at <https://github.com/houseabsolute/perl-code-tidyall/issues>. If something is acting up, that is the place, bestie. π
π₯ SOURCE π₯
The source code repository for Code-TidyAll can be found at <https://github.com/houseabsolute/perl-code-tidyall>. It is giving open source royalty. π
π 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.
OK bestie, that is the whole Test::Code::TidyAll manual. The footer energy is perl v5.42.0, 2024-03-08, and Test::C...:TidyAll(3) β periodt. π
β¨
π¦ 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