Perl::Critic::Policy::ValuesAndExpressions::ProhibitFiletest_rwxRWX - Prohibit file access tests.
This Policy is stand-alone, and is not part of the core Perl::Critic.
This policy prohibits the file access tests -r, -w, -x, -R, -W, and -X. All these do by default is to check the file's access control bits. Access to a file can succeed or fail for other reasons such as the presence of Access Control Lists (ACLs), a file system being mounted read-only, or an executable being corrupt.
-r
-w
-x
-R
-W
-X
This policy is under the "bugs" theme, with low severity.
This Policy has no configuration options.
Perl::Critic::Policy::ValuesAndExpressions::ProhibitFiletest_f
https://blogs.perl.org/users/tom_wyant/2022/06/the-file-access-operators-to-use-or-not-to-use.html
Support is by the author. Please file bug reports at https://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Critic-Policy-ValuesAndExpressions-ProhibitFiletest_rwxRWX, https://github.com/trwyant/perl-Perl-Critic-Policy-ValuesAndExpressions-ProhibitFiletest_rwxRWX/issues, or in electronic mail to the author.
Thomas R. Wyant, III wyant at cpan dot org.
Copyright 2022 Thomas R. Wyant, III.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Perl::Critic::Policy::ValuesAndExpressions::ProhibitFiletest_rwxRWX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::Policy::ValuesAndExpressions::ProhibitFiletest_rwxRWX
CPAN shell
perl -MCPAN -e shell install Perl::Critic::Policy::ValuesAndExpressions::ProhibitFiletest_rwxRWX
For more information on module installation, please visit the detailed CPAN module installation guide.