-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubocop_report.html
4296 lines (3132 loc) · 175 KB
/
rubocop_report.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8' />
<title>RuboCop Inspection Report</title>
<style>
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body, html {
font-size: 62.5%;
}
body {
background-color: #ecedf0;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
margin: 0;
}
code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 85%;
}
#header {
background: #f9f9f9;
color: #333;
border-bottom: 3px solid #ccc;
height: 50px;
padding: 0;
}
#header .logo {
float: left;
margin: 5px 12px 7px 20px;
width: 38px;
height: 38px;
}
#header .title {
display: inline-block;
float: left;
height: 50px;
font-size: 2.4rem;
letter-spacing: normal;
line-height: 50px;
margin: 0;
}
.information, #offenses {
width: 100%;
padding: 20px;
color: #333;
}
#offenses {
padding: 0 20px;
}
.information .infobox {
border-left: 3px solid;
border-radius: 4px;
background-color: #fff;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
padding: 15px;
border-color: #0088cc;
font-size: 1.4rem;
}
.information .infobox .info-title {
font-size: 1.8rem;
line-height: 2.2rem;
margin: 0 0 0.5em;
}
.information .infobox ul {
list-style: none;
margin: 0;
padding: 0;
}
.information .infobox ul li {
line-height: 1.8rem
}
#offenses .offense-box {
border-radius: 4px;
margin-bottom: 20px;
background-color: #fff;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.fixed .box-title {
position: fixed;
top: 0;
z-index: 10;
width: 100%;
}
.box-title-placeholder {
display: none;
}
.fixed .box-title-placeholder {
display: block;
}
#offenses .offense-box .box-title h3, #offenses .offense-box .box-title-placeholder h3 {
color: #33353f;
background-color: #f6f6f6;
font-size: 2rem;
line-height: 2rem;
display: block;
padding: 15px;
border-radius: 5px;
margin: 0;
}
#offenses .offense-box .offense-reports {
padding: 0 15px;
}
#offenses .offense-box .offense-reports .report {
border-bottom: 1px dotted #ddd;
padding: 15px 0px;
position: relative;
font-size: 1.3rem;
}
#offenses .offense-box .offense-reports .report:last-child {
border-bottom: none;
}
#offenses .offense-box .offense-reports .report pre code {
display: block;
background: #000;
color: #fff;
padding: 10px 15px;
border-radius: 5px;
line-height: 1.6rem;
}
#offenses .offense-box .offense-reports .report .location {
font-weight: bold;
}
#offenses .offense-box .offense-reports .report .message code {
padding: 0.3em;
background-color: rgba(0,0,0,0.07);
border-radius: 3px;
}
.severity {
text-transform: capitalize;
font-weight: bold;
}
.highlight {
padding: 2px;
border-radius: 2px;
font-weight: bold;
}
.severity.refactor {
color: rgba(237, 156, 40, 1.0);
}
.highlight.refactor {
background-color: rgba(237, 156, 40, 0.6);
border: 1px solid rgba(237, 156, 40, 0.4);
}
.severity.convention {
color: rgba(237, 156, 40, 1.0);
}
.highlight.convention {
background-color: rgba(237, 156, 40, 0.6);
border: 1px solid rgba(237, 156, 40, 0.4);
}
.severity.warning {
color: rgba(150, 40, 239, 1.0);
}
.highlight.warning {
background-color: rgba(150, 40, 239, 0.6);
border: 1px solid rgba(150, 40, 239, 0.4);
}
.severity.error {
color: rgba(210, 50, 45, 1.0);
}
.highlight.error {
background-color: rgba(210, 50, 45, 0.6);
border: 1px solid rgba(210, 50, 45, 0.4);
}
.severity.fatal {
color: rgba(210, 50, 45, 1.0);
}
.highlight.fatal {
background-color: rgba(210, 50, 45, 0.6);
border: 1px solid rgba(210, 50, 45, 0.4);
}
footer {
margin-bottom: 20px;
margin-right: 20px;
font-size: 1.3rem;
color: #777;
text-align: right;
}
.extra-code {
color: #ED9C28
}
</style>
<script>
(function() {
// floating headers. requires classList support.
if (!('classList' in document.createElement("_"))) return;
var loaded = false,
boxes,
boxPositions;
window.onload = function() {
var scrollY = window.scrollY;
boxes = document.querySelectorAll('.offense-box');
boxPositions = [];
for (var i = 0; i < boxes.length; i++)
// need to add scrollY because the page might be somewhere other than the top when loaded.
boxPositions[i] = boxes[i].getBoundingClientRect().top + scrollY;
loaded = true;
};
window.onscroll = function() {
if (!loaded) return;
var i,
idx,
scrollY = window.scrollY;
for (i = 0; i < boxPositions.length; i++) {
if (scrollY <= boxPositions[i]) {
idx = i;
break;
}
}
if (typeof idx == 'undefined') idx = boxes.length;
if (idx > 0)
boxes[idx - 1].classList.add('fixed');
for (i = 0; i < boxes.length; i++) {
if (i < idx) continue;
boxes[i].classList.remove('fixed');
}
};
})();
</script>
</head>
<body>
<div id="header">
<img class="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAYAAADHl1ErAAAKQWlDQ1BJQ0Mg
UHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKG
hCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a
/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA
4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8
fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnO
Gbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcm
oWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrx
s1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WRQElWW2ZaJHtrRzt7VnW5mj5v9nf
Hn5T/T3IevtV8Sbsz55BjJ5Z32zsrC+9FgD2JFqbHbO+lVUAtG0GQOXhrE/v
IADyBQC03pzzHoZsXpLE4gwnC4vs7GxzAZ9rLivoN/ufgm/Kv4Y595nL7vtW
O6YXP4EjSRUzZUXlpqemS0TMzAwOl89k/fcQ/+PAOWnNycMsnJ/AF/GF6FVR
6JQJhIlou4U8gViQLmQKhH/V4X8YN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MeuCkZPcaEBLqvgPBhCuiZo8+sAAAAAASUVORK5CYII=
" alt="">
<h1 class="title">RuboCop Inspection Report</h1>
</div>
<div class="information">
<div class="infobox">
70 files inspected,
307 offenses detected
</div>
</div>
<div id="offenses">
<div class="offense-box">
<div class="box-title-placeholder"><h3> </h3></div>
<div class="box-title"><h3>app/api/react/api.rb - 53 offenses</h3></div>
<div class="offense-reports">
<div class="report">
<div class="meta">
<span class="location">Line #4</span> –
<span class="severity convention">convention:</span>
<span class="message">Class has too many lines. [151/100]</span>
</div>
<pre><code> <span class="highlight convention">class API < Grape::API</span> <span class="extra-code">...</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #4</span> –
<span class="severity convention">convention:</span>
<span class="message">Missing top-level class documentation comment.</span>
</div>
<pre><code> <span class="highlight convention">class</span> API < Grape::API</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #42</span> –
<span class="severity convention">convention:</span>
<span class="message">Redundant curly braces around a hash parameter.</span>
</div>
<pre><code> token = JwtService.encode(<span class="highlight convention">{ user_id: user.id }</span>)</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #50</span> –
<span class="severity convention">convention:</span>
<span class="message">Extra blank line detected.</span>
</div>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #56</span> –
<span class="severity convention">convention:</span>
<span class="message">Extra blank line detected.</span>
</div>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #57</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> get <span class="highlight convention">"/best_sellers"</span> do</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #58</span> –
<span class="severity warning">warning:</span>
<span class="message">Useless assignment to variable - <code>most_sold_products_per_category</code>.</span>
</div>
<pre><code> <span class="highlight warning">most_sold_products_per_category</span> = Product</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #59</span> –
<span class="severity convention">convention:</span>
<span class="message">Align <code>.select</code> with <code>Product</code> on line 58.</span>
</div>
<pre><code> <span class="highlight convention">.select</span>("categories.name as category_name, products.name as product_name, COUNT(purchases.id) as purchases_count")</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #59</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> .select(<span class="highlight convention">"categories.name as category_name, products.name as product_name, COUNT(purchases.id) as purchases_count"</span>)</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #59</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [158/80]</span>
</div>
<pre><code> .select("categories.name as category<span class="highlight convention">_name, products.name as product_name, COUNT(purchases.id) as purchases_count")</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #60</span> –
<span class="severity convention">convention:</span>
<span class="message">Align <code>.joins</code> with <code>Product</code> on line 58.</span>
</div>
<pre><code> <span class="highlight convention">.joins</span>(:purchases)</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #61</span> –
<span class="severity convention">convention:</span>
<span class="message">Align <code>.joins</code> with <code>Product</code> on line 58.</span>
</div>
<pre><code> <span class="highlight convention">.joins</span>(:categories)</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #62</span> –
<span class="severity convention">convention:</span>
<span class="message">Align <code>.group</code> with <code>Product</code> on line 58.</span>
</div>
<pre><code> <span class="highlight convention">.group</span>("categories.name, products.name")</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #62</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> .group(<span class="highlight convention">"categories.name, products.name"</span>)</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #62</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [84/80]</span>
</div>
<pre><code> .group("categories.name, products.na<span class="highlight convention">me")</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #63</span> –
<span class="severity convention">convention:</span>
<span class="message">Align <code>.order</code> with <code>Product</code> on line 58.</span>
</div>
<pre><code> <span class="highlight convention">.order</span>("categories.name, purchases_count DESC")</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #63</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> .order(<span class="highlight convention">"categories.name, purchases_count DESC"</span>)</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #63</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [91/80]</span>
</div>
<pre><code> .order("categories.name, purchases_c<span class="highlight convention">ount DESC")</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #64</span> –
<span class="severity convention">convention:</span>
<span class="message">Align <code>.group_by</code> with <code>Product</code> on line 58.</span>
</div>
<pre><code> <span class="highlight convention">.group_by</span>(&:category_name)</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #65</span> –
<span class="severity convention">convention:</span>
<span class="message">Align <code>.map</code> with <code>Product</code> on line 58.</span>
</div>
<pre><code> <span class="highlight convention">.map</span> do |category_name, products|</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #75</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> get <span class="highlight convention">"/more_profit"</span> do</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #76</span> –
<span class="severity warning">warning:</span>
<span class="message">Useless assignment to variable - <code>most_profit_products_per_category</code>.</span>
</div>
<pre><code> <span class="highlight warning">most_profit_products_per_category</span> = Product</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #77</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> .select(<span class="highlight convention">"categories.name as category_name, products.name as product_name, SUM(purchases.total) as purchases_total"</span>)</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #77</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [159/80]</span>
</div>
<pre><code> .select("categories.name as category<span class="highlight convention">_name, products.name as product_name, SUM(purchases.total) as purchases_total")</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #80</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> .group(<span class="highlight convention">"categories.name, products.name"</span>)</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #80</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [84/80]</span>
</div>
<pre><code> .group("categories.name, products.na<span class="highlight convention">me")</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #81</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> .order(<span class="highlight convention">"categories.name, purchases_total DESC"</span>)</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #81</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [91/80]</span>
</div>
<pre><code> .order("categories.name, purchases_t<span class="highlight convention">otal DESC")</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #100</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> get <span class="highlight convention">"/"</span> do</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #106</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [87/80]</span>
</div>
<pre><code> query = query.where(created_at: declared_params[:from]..declared_param<span class="highlight convention">s[:to])</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #109</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [140/80]</span>
</div>
<pre><code> query = query.joins(product: :categories).where('categories.id = ?', dec<span class="highlight convention">lared_params[:category_id]) if declared_params[:category_id]</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #111</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [98/80]</span>
</div>
<pre><code> query = query.where(client_id: declared_params[:client_id]) if declared_<span class="highlight convention">params[:client_id]</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #113</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [161/80]</span>
</div>
<pre><code> query = query.joins(product: :audits).where("audits.user_id = ? AND audi<span class="highlight convention">ts.user_type = 'User'", declared_params[:admin_id]) if declared_params[:admin_id]</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #124</span> –
<span class="severity convention">convention:</span>
<span class="message"><code>%w</code>-literals should be delimited by <code>(</code> and <code>)</code>.</span>
</div>
<pre><code> requires :granularity, type: String, values: <span class="highlight convention">%w[hour daily week year]</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #126</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> get <span class="highlight convention">"/summary"</span> do</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #131</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [87/80]</span>
</div>
<pre><code> query = query.where(created_at: declared_params[:from]..declared_param<span class="highlight convention">s[:to])</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #134</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [140/80]</span>
</div>
<pre><code> query = query.joins(product: :categories).where('categories.id = ?', dec<span class="highlight convention">lared_params[:category_id]) if declared_params[:category_id]</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #136</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [98/80]</span>
</div>
<pre><code> query = query.where(client_id: declared_params[:client_id]) if declared_<span class="highlight convention">params[:client_id]</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #138</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [161/80]</span>
</div>
<pre><code> query = query.joins(product: :audits).where("audits.user_id = ? AND audi<span class="highlight convention">ts.user_type = 'User'", declared_params[:admin_id]) if declared_params[:admin_id]</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #140</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> select_clause = <span class="highlight convention">"COUNT(*) as purchase_count"</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #141</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> group_clause = <span class="highlight convention">""</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #143</span> –
<span class="severity convention">convention:</span>
<span class="message">Extra blank line detected.</span>
</div>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #156</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> select_clause = <span class="highlight convention">"COUNT(*) as purchase_count"</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #157</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [105/80]</span>
</div>
<pre><code> query = query.select("#{group_clause} as formatted_date, #{select_clau<span class="highlight convention">se}").group(group_clause)</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #160</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [112/80]</span>
</div>
<pre><code> query = query.select("#{group_clause}, #{select_clause}").group(group_cl<span class="highlight convention">ause) unless group_clause.empty?</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #163</span> –
<span class="severity convention">convention:</span>
<span class="message">Use <code>each_with_object</code> instead of <code>inject</code>.</span>
</div>
<pre><code> results_hash = results.<span class="highlight convention">inject</span>({}) do |hash, record|</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #170</span> –
<span class="severity convention">convention:</span>
<span class="message">Extra empty line detected at block body end.</span>
</div>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #175</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> title: <span class="highlight convention">"API Documentation --"</span>,</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #176</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> description: <span class="highlight convention">"This API is build to be consumed from our mobile app."</span>,</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #177</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> contact_name: <span class="highlight convention">"Adrian Aguero"</span>,</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #178</span> –
<span class="severity convention">convention:</span>
<span class="message">Prefer single-quoted strings when you don't need string interpolation or special symbols.</span>
</div>
<pre><code> contact_email: <span class="highlight convention">"[email protected]"</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #184</span> –
<span class="severity convention">convention:</span>
<span class="message">Line is too long. [115/80]</span>
</div>
<pre><code> description: 'JWT Authorization header using the Bearer scheme. Exampl<span class="highlight convention">e: "Authorization: Bearer {token}"'</span></code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #192</span> –
<span class="severity convention">convention:</span>
<span class="message">1 trailing blank lines detected.</span>
</div>
</div>
</div>
</div>
<div class="offense-box">
<div class="box-title-placeholder"><h3> </h3></div>
<div class="box-title"><h3>app/controllers/application_controller.rb - 2 offenses</h3></div>
<div class="offense-reports">
<div class="report">
<div class="meta">
<span class="location">Line #1</span> –
<span class="severity convention">convention:</span>
<span class="message">Missing top-level class documentation comment.</span>
</div>
<pre><code><span class="highlight convention">class</span> ApplicationController < ActionController::Base</code></pre>
</div>
<div class="report">
<div class="meta">
<span class="location">Line #4</span> –
<span class="severity convention">convention:</span>
<span class="message">Extra empty line detected at class body end.</span>
</div>
</div>
</div>
</div>
<div class="offense-box">
<div class="box-title-placeholder"><h3> </h3></div>
<div class="box-title"><h3>app/controllers/categories_controller.rb - 9 offenses</h3></div>
<div class="offense-reports">
<div class="report">
<div class="meta">
<span class="location">Line #1</span> –
<span class="severity convention">convention:</span>
<span class="message">Missing top-level class documentation comment.</span>
</div>