Skip to content

Commit e8b99b8

Browse files
committed
sync perltidy settings with metacpan-web
1 parent fab603e commit e8b99b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+1370
-1674
lines changed

.perltidyrc

+16-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1-
-pbp
2-
-nst
3-
1+
--maximum-line-length=78
2+
--indent-columns=4
3+
--continuation-indentation=4
4+
--standard-error-output
5+
--vertical-tightness=2
6+
--closing-token-indentation=0
7+
--paren-tightness=1
8+
--brace-tightness=1
9+
--square-bracket-tightness=1
10+
--block-brace-tightness=1
11+
--nospace-for-semicolon
12+
--nooutdent-long-quotes
13+
--want-break-before="% + - * / x != == >= <= =~ !~ < > | & = **= += *= &= <<= &&= -= /= |= >>= ||= //= .= %= ^= x="
414
# Break a line after opening/before closing token.
5-
-vt=0
6-
-vtc=0
15+
--vertical-tightness=0
16+
--vertical-tightness-closing=0
17+
--weld-nested-containers

lib/Catalyst/Plugin/OAuth2/Provider.pm

+3-5
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,9 @@ sub access_token : Local {
107107
$user->put( { refresh => 1 } );
108108

109109
$c->res->content_type('application/json');
110-
$c->res->body(
111-
encode_json(
112-
{ access_token => $access_token, token_type => 'bearer' }
113-
)
114-
);
110+
$c->res->body( encode_json(
111+
{ access_token => $access_token, token_type => 'bearer' }
112+
) );
115113

116114
}
117115

lib/MetaCPAN/API.pm

+4-6
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,10 @@ sub _gen_index_task_sub {
9090
}
9191
catch {
9292
warn $_;
93-
$job->fail(
94-
{
95-
message => $_,
96-
@warnings ? ( warnings => \@warnings ) : (),
97-
}
98-
);
93+
$job->fail( {
94+
message => $_,
95+
@warnings ? ( warnings => \@warnings ) : (),
96+
} );
9997
};
10098
}
10199
}

lib/MetaCPAN/Document/Favorite/Set.pm

+5-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ has query_favorite => (
1111
isa => 'MetaCPAN::Query::Favorite',
1212
lazy => 1,
1313
builder => '_build_query_favorite',
14-
handles => [
15-
qw< agg_by_distributions
16-
by_user
17-
leaderboard
18-
recent
19-
users_by_distribution >
20-
],
14+
handles => [ qw< agg_by_distributions
15+
by_user
16+
leaderboard
17+
recent
18+
users_by_distribution > ],
2119
);
2220

2321
sub _build_query_favorite {

0 commit comments

Comments
 (0)