| 1 | # You may distribute under the terms of either the GNU General Public License | ||
| 2 | # or the Artistic License (the same terms as Perl itself) | ||
| 3 | # | ||
| 4 | # (C) Paul Evans, 2023 -- leonerd@leonerd.org.uk | ||
| 5 | |||
| 6 | use v5.36; | ||
| 7 | use Object::Pad 0.800; | ||
| 8 | |||
| 9 | class App::perl::distrolint::Check::Editorconfig 0.09; | ||
| 10 | |||
| 11 | use constant DESC => "check that .editorconfig exists"; | ||
| 12 | use constant SORT => 5; | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | C<App::perl::distrolint::Check::Editorconfig> - check that a F<.editorconfig> file exists | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | This checks that a file called F<.editorconfig> exists in the distribution | ||
| 21 | directory. | ||
| 22 | |||
| 23 | The contents of such a file are described in more detail at | ||
| 24 | L<https://editorconfig.org/> | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | method run ( $app ) | ||
| 29 | { | ||
| 30 | return -e ".editorconfig"; | ||
| 31 | } | ||
| 32 | |||
| 33 | =head1 AUTHOR | ||
| 34 | |||
| 35 | Paul Evans <leonerd@leonerd.org.uk> | ||
| 36 | |||
| 37 | =cut | ||
| 38 | |||
| 39 | 0x55AA; |