Skip to content

Commit

Permalink
tidy all files
Browse files Browse the repository at this point in the history
The tests are currently only applied to a subset of files, but in the
future we will be using precious against all files.

Remove gitignore sorting from the tidyall config. It uses a different
sorting algorithm than what we will be using in the future with
precious. Once we fully transition to precious, the order will be
checked again. But for now it isn't a high priority.
  • Loading branch information
haarg committed Sep 8, 2024
1 parent d8b27fc commit 189431f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 20 deletions.
16 changes: 8 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
*.komodoproject
*.kpf
*.sqlite*
*.sw*
.DS_Store
.tidyall.d
/MYMETA.*
/Makefile
/Makefile.old
/blib
/cover_db/
/etc/metacpan_local.pl
/local/
/log4perl_local.conf
/metacpan_server_local.conf
/perltidy.LOG
/pm_to_blib
/var
/etc/metacpan_local.pl
/t/var/darkpan/
/t/var/log/
/t/var/tmp/
/var
*.komodoproject
*.kpf
*.sqlite*
*.sw*
.DS_Store
.tidyall.d
8 changes: 4 additions & 4 deletions bin/unlisted_prereqs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

use strict;
use warnings;
use Perl::PrereqScanner 1.014;
use CPAN::Meta::Requirements ();
use File::Find::Rule::Perl;
use List::Util qw( sum );
use Perl::PrereqScanner 1.014 ();
use CPAN::Meta::Requirements ();
use File::Find::Rule::Perl ();
use List::Util qw( sum );
use version 0.77;

# TODO: use CPAN::Meta::Prereqs
Expand Down
2 changes: 1 addition & 1 deletion etc/metacpan.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# do not edit this file
# create etc/metacpan_local.pl instead
use FindBin;
use FindBin ();

{
# ElasticSearch instance, can be either a single server
Expand Down
2 changes: 1 addition & 1 deletion improve-search-results/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# carton/local::lib
/local/
# carton/local::lib
2 changes: 1 addition & 1 deletion perlimports.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# preserve_unused disabled.

cache = false # setting this to true is currently discouraged
ignore_modules = ["Catalyst::Runtime","Module::Pluggable", "namespace::clean", "Test::More", "Type::Library", "With::Roles"]
ignore_modules = ["Catalyst::Runtime","Module::Pluggable", "namespace::clean", "Test::More", "Type::Library", "With::Roles", "File::Find::Rule::Perl"]
ignore_modules_filename = ""
ignore_modules_pattern = "" # regex like "^(Foo|Foo::Bar)"
ignore_modules_pattern_filename = ""
Expand Down
4 changes: 2 additions & 2 deletions t/lib/MetaCPAN/Server/Test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package MetaCPAN::Server::Test;
use strict;
use warnings;

use HTTP::Request::Common qw( DELETE GET POST );
use HTTP::Request::Common qw( DELETE GET POST ); ## no perlimports
use MetaCPAN::Server ();
use Plack::Test qw( test_psgi );
use Plack::Test qw( test_psgi ); ## no perlimports
use Test::More;

use base 'Exporter';
Expand Down
3 changes: 0 additions & 3 deletions tidyall.ini
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,5 @@ ignore = lib/MetaCPAN/Server/View/Pod.pm
ignore = lib/MetaCPAN/Util.pm
ignore = lib/Plack/Session/Store/ElasticSearch.pm

[SortLines]
select = .gitignore

[UniqueLines]
select = .gitignore

0 comments on commit 189431f

Please sign in to comment.