]> iEval git - gruntmaster-data.git/commitdiff
Add a no critic annotation
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 13 Dec 2014 16:09:01 +0000 (18:09 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 13 Dec 2014 16:09:01 +0000 (18:09 +0200)
lib/Gruntmaster/Data.pm

index e8b5c73b5ed90becf07f8b3e8caa491062862722..627fb8b26796ae2047ed813f114f6e0989def420 100644 (file)
@@ -43,7 +43,7 @@ BEGIN {
 
 sub user_list {
        my $rs = $_[0]->users->search(undef, {columns => USER_PUBLIC_COLUMNS, prefetch => [qw/problem_statuses contest_statuses/]} );
-       [ sort { $b->{solved} <=> $a->{solved} or $b->{attempted} <=> $a->{attempted} }map {
+       [ sort { $b->{solved} <=> $a->{solved} or $b->{attempted} <=> $a->{attempted} } map { ## no critic (ProhibitReverseSort)
                my $solved    = $_->problem_statuses->count(solved => 1);
                my $attempted = $_->problem_statuses->count(solved => 0);
                my $contests  = $_->contest_statuses->count;
This page took 0.031708 seconds and 4 git commands to generate.