metric_fu 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/HISTORY +13 -5
  2. data/README +2 -2
  3. data/Rakefile +1 -1
  4. data/TODO +3 -1
  5. data/lib/base/base_template.rb +16 -16
  6. data/lib/base/churn_analyzer.rb +3 -3
  7. data/lib/base/code_issue.rb +8 -8
  8. data/lib/base/configuration.rb +24 -22
  9. data/lib/base/flay_analyzer.rb +2 -2
  10. data/lib/base/flog_analyzer.rb +4 -4
  11. data/lib/base/generator.rb +21 -21
  12. data/lib/base/graph.rb +15 -10
  13. data/lib/base/line_numbers.rb +56 -55
  14. data/lib/base/location.rb +68 -66
  15. data/lib/base/metric_analyzer.rb +21 -21
  16. data/lib/base/ranking.rb +23 -22
  17. data/lib/base/rcov_analyzer.rb +3 -3
  18. data/lib/base/reek_analyzer.rb +12 -10
  19. data/lib/base/report.rb +9 -9
  20. data/lib/base/roodi_analyzer.rb +2 -2
  21. data/lib/base/saikuro_analyzer.rb +4 -4
  22. data/lib/base/scoring_strategies.rb +5 -5
  23. data/lib/base/stats_analyzer.rb +2 -2
  24. data/lib/base/table.rb +4 -4
  25. data/lib/generators/churn.rb +1 -1
  26. data/lib/generators/flay.rb +1 -1
  27. data/lib/generators/hotspots.rb +4 -4
  28. data/lib/generators/rails_best_practices.rb +1 -1
  29. data/lib/generators/rcov.rb +17 -17
  30. data/lib/generators/reek.rb +2 -2
  31. data/lib/generators/saikuro.rb +42 -42
  32. data/lib/generators/stats.rb +6 -6
  33. data/lib/graphs/engines/bluff.rb +1 -1
  34. data/lib/graphs/engines/gchart.rb +7 -7
  35. data/lib/graphs/flog_grapher.rb +3 -3
  36. data/lib/graphs/grapher.rb +1 -1
  37. data/lib/metric_fu.rb +2 -2
  38. data/lib/templates/awesome/churn.html.erb +1 -1
  39. data/lib/templates/awesome/css/integrity.css +0 -1
  40. data/lib/templates/awesome/flay.html.erb +2 -2
  41. data/lib/templates/awesome/flog.html.erb +2 -2
  42. data/lib/templates/awesome/hotspots.html.erb +4 -4
  43. data/lib/templates/awesome/index.html.erb +2 -2
  44. data/lib/templates/awesome/rails_best_practices.html.erb +1 -1
  45. data/lib/templates/awesome/rcov.html.erb +1 -1
  46. data/lib/templates/awesome/roodi.html.erb +1 -1
  47. data/lib/templates/awesome/saikuro.html.erb +3 -3
  48. data/lib/templates/awesome/stats.html.erb +1 -1
  49. data/lib/templates/standard/churn.html.erb +2 -2
  50. data/lib/templates/standard/default.css +4 -4
  51. data/lib/templates/standard/flay.html.erb +4 -4
  52. data/lib/templates/standard/flog.html.erb +1 -1
  53. data/lib/templates/standard/hotspots.html.erb +4 -4
  54. data/lib/templates/standard/index.html.erb +2 -2
  55. data/lib/templates/standard/rails_best_practices.html.erb +2 -2
  56. data/lib/templates/standard/rcov.html.erb +2 -2
  57. data/lib/templates/standard/reek.html.erb +1 -1
  58. data/lib/templates/standard/roodi.html.erb +2 -2
  59. data/lib/templates/standard/saikuro.html.erb +4 -4
  60. data/lib/templates/standard/stats.html.erb +2 -2
  61. data/spec/base/base_template_spec.rb +1 -1
  62. data/spec/base/configuration_spec.rb +36 -36
  63. data/spec/base/generator_spec.rb +10 -10
  64. data/spec/base/graph_spec.rb +41 -4
  65. data/spec/base/line_numbers_spec.rb +22 -22
  66. data/spec/base/report_spec.rb +9 -9
  67. data/spec/generators/churn_spec.rb +4 -4
  68. data/spec/generators/flay_spec.rb +31 -31
  69. data/spec/generators/flog_spec.rb +18 -18
  70. data/spec/generators/rails_best_practices_spec.rb +6 -6
  71. data/spec/generators/rcov_spec.rb +18 -18
  72. data/spec/generators/reek_spec.rb +10 -10
  73. data/spec/generators/roodi_spec.rb +2 -2
  74. data/spec/generators/saikuro_spec.rb +7 -7
  75. data/spec/generators/stats_spec.rb +6 -6
  76. data/spec/graphs/engines/gchart_spec.rb +8 -8
  77. data/spec/graphs/flog_grapher_spec.rb +8 -8
  78. data/spec/resources/line_numbers/foo.rb +7 -7
  79. data/spec/resources/line_numbers/module.rb +2 -2
  80. data/spec/resources/line_numbers/module_surrounds_class.rb +6 -6
  81. data/spec/resources/saikuro/index_cyclo.html +2 -2
  82. data/spec/resources/yml/20090630.yml +349 -349
  83. data/spec/resources/yml/metric_missing.yml +1 -1
  84. data/tasks/metric_fu.rake +4 -4
  85. metadata +4 -4
@@ -3,28 +3,28 @@ class Foo
3
3
  def self.awesome
4
4
  1 + 1
5
5
  end
6
-
6
+
7
7
  def what
8
8
  12
9
9
  end
10
-
10
+
11
11
  def hello
12
12
  puts "Hi There"
13
13
  end
14
-
15
-
14
+
15
+
16
16
  def awesome
17
17
  3+4
18
18
  end
19
-
19
+
20
20
  class << self
21
21
  def neat
22
22
  "23 skido"
23
23
  end
24
24
  end
25
-
25
+
26
26
  private
27
-
27
+
28
28
  def whoop
29
29
  "w00t"
30
30
  end
@@ -1,10 +1,10 @@
1
1
  module KickAss
2
-
2
+
3
3
  def get_beat_up?
4
4
  [1,2,3].inject {|m,o| m = m + o}
5
5
  true
6
6
  end
7
-
7
+
8
8
  def fight
9
9
  "poorly"
10
10
  end
@@ -1,15 +1,15 @@
1
1
  module StuffModule
2
-
3
- class ThingClass
4
-
2
+
3
+ class ThingClass
4
+
5
5
  def do_it
6
6
  "do it"
7
7
  end
8
-
8
+
9
9
  end
10
-
10
+
11
11
  def blah
12
12
  "blah blah"
13
13
  end
14
-
14
+
15
15
  end
@@ -8,7 +8,7 @@ body {
8
8
  background-color: #efefef;
9
9
  }
10
10
 
11
- table {
11
+ table {
12
12
  border-collapse: collapse;
13
13
  /*border-spacing: 0;*/
14
14
  border: 1px solid #666;
@@ -31,7 +31,7 @@ th, td {
31
31
  padding: 4px 10px;
32
32
  }
33
33
 
34
- td {
34
+ td {
35
35
  font-size: 13px;
36
36
  }
37
37
 
@@ -1,15 +1,15 @@
1
- ---
2
- :flay:
1
+ ---
2
+ :flay:
3
3
  :total_score: "476"
4
- :matches:
4
+ :matches:
5
5
  - :reason: 1) Similar code found in :module (mass = 252)
6
- :matches:
6
+ :matches:
7
7
  - :line: "2"
8
8
  :name: lib/graphs/flay_grapher.rb
9
9
  - :line: "2"
10
10
  :name: lib/graphs/roodi_grapher.rb
11
11
  - :reason: 2) Similar code found in :defn (mass = 90)
12
- :matches:
12
+ :matches:
13
13
  - :line: "11"
14
14
  :name: lib/generators/flay.rb
15
15
  - :line: "11"
@@ -17,7 +17,7 @@
17
17
  - :line: "10"
18
18
  :name: lib/generators/roodi.rb
19
19
  - :reason: 3) Similar code found in :defn (mass = 54)
20
- :matches:
20
+ :matches:
21
21
  - :line: "76"
22
22
  :name: lib/base/generator.rb
23
23
  - :line: "82"
@@ -25,7 +25,7 @@
25
25
  - :line: "88"
26
26
  :name: lib/base/generator.rb
27
27
  - :reason: 4) Similar code found in :attrasgn (mass = 48)
28
- :matches:
28
+ :matches:
29
29
  - :line: "18"
30
30
  :name: lib/generators/stats.rb
31
31
  - :line: "19"
@@ -33,15 +33,15 @@
33
33
  - :line: "20"
34
34
  :name: lib/generators/stats.rb
35
35
  - :reason: 5) Similar code found in :lasgn (mass = 32)
36
- :matches:
36
+ :matches:
37
37
  - :line: "12"
38
38
  :name: lib/generators/stats.rb
39
39
  - :line: "13"
40
40
  :name: lib/generators/stats.rb
41
- :rcov:
42
- lib/generators/reek.rb:
41
+ :rcov:
42
+ lib/generators/reek.rb:
43
43
  :percent_run: 32
44
- :lines:
44
+ :lines:
45
45
  - :was_run: true
46
46
  :content: " module MetricFu"
47
47
  - :was_run: true
@@ -116,9 +116,9 @@
116
116
  :content: " end"
117
117
  - :was_run: false
118
118
  :content: " end"
119
- lib/graphs/roodi_grapher.rb:
119
+ lib/graphs/roodi_grapher.rb:
120
120
  :percent_run: 35
121
- :lines:
121
+ :lines:
122
122
  - :was_run: true
123
123
  :content: " require 'gruff'"
124
124
  - :was_run: true
@@ -187,9 +187,9 @@
187
187
  :content: " "
188
188
  - :was_run: false
189
189
  :content: " end"
190
- lib/generators/saikuro.rb:
190
+ lib/generators/saikuro.rb:
191
191
  :percent_run: 23
192
- :lines:
192
+ :lines:
193
193
  - :was_run: true
194
194
  :content: " module MetricFu"
195
195
  - :was_run: true
@@ -606,9 +606,9 @@
606
606
  :content: " end"
607
607
  - :was_run: false
608
608
  :content: " end"
609
- lib/generators/churn.rb:
609
+ lib/generators/churn.rb:
610
610
  :percent_run: 42
611
- :lines:
611
+ :lines:
612
612
  - :was_run: true
613
613
  :content: " require 'chronic'"
614
614
  - :was_run: true
@@ -791,9 +791,9 @@
791
791
  :content: " end"
792
792
  - :was_run: false
793
793
  :content: " end"
794
- lib/graphs/reek_grapher.rb:
794
+ lib/graphs/reek_grapher.rb:
795
795
  :percent_run: 27
796
- :lines:
796
+ :lines:
797
797
  - :was_run: true
798
798
  :content: " require 'gruff'"
799
799
  - :was_run: true
@@ -882,9 +882,9 @@
882
882
  :content: " "
883
883
  - :was_run: false
884
884
  :content: " end"
885
- lib/generators/stats.rb:
885
+ lib/generators/stats.rb:
886
886
  :percent_run: 21
887
- :lines:
887
+ :lines:
888
888
  - :was_run: true
889
889
  :content: " module MetricFu"
890
890
  - :was_run: true
@@ -971,9 +971,9 @@
971
971
  :content: " end"
972
972
  - :was_run: false
973
973
  :content: " end"
974
- lib/base/report.rb:
974
+ lib/base/report.rb:
975
975
  :percent_run: 76
976
- :lines:
976
+ :lines:
977
977
  - :was_run: true
978
978
  :content: " module MetricFu"
979
979
  - :was_run: true
@@ -1174,9 +1174,9 @@
1174
1174
  :content: " end"
1175
1175
  - :was_run: false
1176
1176
  :content: " end"
1177
- lib/generators/rcov.rb:
1177
+ lib/generators/rcov.rb:
1178
1178
  :percent_run: 25
1179
- :lines:
1179
+ :lines:
1180
1180
  - :was_run: true
1181
1181
  :content: " require 'enumerator'"
1182
1182
  - :was_run: true
@@ -1351,9 +1351,9 @@
1351
1351
  :content: " end"
1352
1352
  - :was_run: false
1353
1353
  :content: " end"
1354
- lib/generators/roodi.rb:
1354
+ lib/generators/roodi.rb:
1355
1355
  :percent_run: 35
1356
- :lines:
1356
+ :lines:
1357
1357
  - :was_run: true
1358
1358
  :content: " module MetricFu"
1359
1359
  - :was_run: true
@@ -1416,9 +1416,9 @@
1416
1416
  :content: " end"
1417
1417
  - :was_run: false
1418
1418
  :content: " end"
1419
- lib/generators/flay.rb:
1419
+ lib/generators/flay.rb:
1420
1420
  :percent_run: 35
1421
- :lines:
1421
+ :lines:
1422
1422
  - :was_run: true
1423
1423
  :content: " require 'generator'"
1424
1424
  - :was_run: true
@@ -1487,9 +1487,9 @@
1487
1487
  :content: " end"
1488
1488
  - :was_run: false
1489
1489
  :content: " end"
1490
- lib/base/configuration.rb:
1490
+ lib/base/configuration.rb:
1491
1491
  :percent_run: 91
1492
- :lines:
1492
+ :lines:
1493
1493
  - :was_run: true
1494
1494
  :content: " module MetricFu"
1495
1495
  - :was_run: true
@@ -1905,9 +1905,9 @@
1905
1905
  - :was_run: false
1906
1906
  :content: " end"
1907
1907
  :global_percent_run: 49.6
1908
- tasks/metric_fu.rake:
1908
+ tasks/metric_fu.rake:
1909
1909
  :percent_run: 18
1910
- :lines:
1910
+ :lines:
1911
1911
  - :was_run: true
1912
1912
  :content: " require 'rake'"
1913
1913
  - :was_run: true
@@ -1952,9 +1952,9 @@
1952
1952
  :content: " end"
1953
1953
  - :was_run: false
1954
1954
  :content: " end"
1955
- lib/graphs/flog_grapher.rb:
1955
+ lib/graphs/flog_grapher.rb:
1956
1956
  :percent_run: 32
1957
- :lines:
1957
+ :lines:
1958
1958
  - :was_run: true
1959
1959
  :content: " require 'gruff'"
1960
1960
  - :was_run: true
@@ -2029,9 +2029,9 @@
2029
2029
  :content: " "
2030
2030
  - :was_run: false
2031
2031
  :content: " end"
2032
- lib/base/graph.rb:
2032
+ lib/base/graph.rb:
2033
2033
  :percent_run: 38
2034
- :lines:
2034
+ :lines:
2035
2035
  - :was_run: true
2036
2036
  :content: " module MetricFu"
2037
2037
  - :was_run: true
@@ -2106,9 +2106,9 @@
2106
2106
  :content: " end"
2107
2107
  - :was_run: false
2108
2108
  :content: " end"
2109
- lib/graphs/flay_grapher.rb:
2109
+ lib/graphs/flay_grapher.rb:
2110
2110
  :percent_run: 35
2111
- :lines:
2111
+ :lines:
2112
2112
  - :was_run: true
2113
2113
  :content: " require 'gruff'"
2114
2114
  - :was_run: true
@@ -2177,9 +2177,9 @@
2177
2177
  :content: " "
2178
2178
  - :was_run: false
2179
2179
  :content: " end"
2180
- lib/templates/standard/standard_template.rb:
2180
+ lib/templates/standard/standard_template.rb:
2181
2181
  :percent_run: 27
2182
- :lines:
2182
+ :lines:
2183
2183
  - :was_run: true
2184
2184
  :content: " class StandardTemplate < MetricFu::Template"
2185
2185
  - :was_run: true
@@ -2232,9 +2232,9 @@
2232
2232
  :content: " end"
2233
2233
  - :was_run: true
2234
2234
  :content: " "
2235
- lib/base/md5_tracker.rb:
2235
+ lib/base/md5_tracker.rb:
2236
2236
  :percent_run: 35
2237
- :lines:
2237
+ :lines:
2238
2238
  - :was_run: true
2239
2239
  :content: " require 'digest/md5'"
2240
2240
  - :was_run: true
@@ -2339,9 +2339,9 @@
2339
2339
  :content: " end"
2340
2340
  - :was_run: false
2341
2341
  :content: " end"
2342
- lib/generators/flog.rb:
2342
+ lib/generators/flog.rb:
2343
2343
  :percent_run: 38
2344
- :lines:
2344
+ :lines:
2345
2345
  - :was_run: true
2346
2346
  :content: " module MetricFu"
2347
2347
  - :was_run: true
@@ -2622,9 +2622,9 @@
2622
2622
  :content: " end "
2623
2623
  - :was_run: false
2624
2624
  :content: " end"
2625
- lib/base/generator.rb:
2625
+ lib/base/generator.rb:
2626
2626
  :percent_run: 70
2627
- :lines:
2627
+ :lines:
2628
2628
  - :was_run: true
2629
2629
  :content: " module MetricFu"
2630
2630
  - :was_run: true
@@ -2945,9 +2945,9 @@
2945
2945
  :content: " end"
2946
2946
  - :was_run: false
2947
2947
  :content: " end"
2948
- lib/templates/awesome/awesome_template.rb:
2948
+ lib/templates/awesome/awesome_template.rb:
2949
2949
  :percent_run: 20
2950
- :lines:
2950
+ :lines:
2951
2951
  - :was_run: true
2952
2952
  :content: " class AwesomeTemplate < MetricFu::Template"
2953
2953
  - :was_run: true
@@ -3008,9 +3008,9 @@
3008
3008
  :content: " end"
3009
3009
  - :was_run: true
3010
3010
  :content: " "
3011
- lib/graphs/rcov_grapher.rb:
3011
+ lib/graphs/rcov_grapher.rb:
3012
3012
  :percent_run: 35
3013
- :lines:
3013
+ :lines:
3014
3014
  - :was_run: true
3015
3015
  :content: " require 'gruff'"
3016
3016
  - :was_run: true
@@ -3079,9 +3079,9 @@
3079
3079
  :content: " "
3080
3080
  - :was_run: false
3081
3081
  :content: " end"
3082
- lib/base/base_template.rb:
3082
+ lib/base/base_template.rb:
3083
3083
  :percent_run: 74
3084
- :lines:
3084
+ :lines:
3085
3085
  - :was_run: true
3086
3086
  :content: " module MetricFu"
3087
3087
  - :was_run: true
@@ -3374,9 +3374,9 @@
3374
3374
  :content: " end"
3375
3375
  - :was_run: false
3376
3376
  :content: " end"
3377
- lib/metric_fu.rb:
3377
+ lib/metric_fu.rb:
3378
3378
  :percent_run: 100
3379
- :lines:
3379
+ :lines:
3380
3380
  - :was_run: true
3381
3381
  :content: " # Load a few things to make our lives easier elsewhere."
3382
3382
  - :was_run: true
@@ -3425,9 +3425,9 @@
3425
3425
  :content: " Dir[File.join(template_dir, 'awesome/*.rb')].each {|l| require l}"
3426
3426
  - :was_run: true
3427
3427
  :content: " Dir[File.join(graph_dir, '*.rb')].each {|l| require l}"
3428
- :reek:
3429
- :matches:
3430
- - :code_smells:
3428
+ :reek:
3429
+ :matches:
3430
+ - :code_smells:
3431
3431
  - :type: Utility Function
3432
3432
  :method: MetricFu::Template#cycle
3433
3433
  :message: doesn't depend on instance state
@@ -3459,7 +3459,7 @@
3459
3459
  :method: MetricFu::Template#output_filename
3460
3460
  :message: refers to section more than self
3461
3461
  :file_path: lib/base/base_template.rb
3462
- - :code_smells:
3462
+ - :code_smells:
3463
3463
  - :type: Large Class
3464
3464
  :method: MetricFu::Configuration
3465
3465
  :message: has at least 26 instance variables
@@ -3473,7 +3473,7 @@
3473
3473
  :method: MetricFu::Configuration#reset
3474
3474
  :message: has approx 26 statements
3475
3475
  :file_path: lib/base/configuration.rb
3476
- - :code_smells:
3476
+ - :code_smells:
3477
3477
  - :type: Nested Iterators
3478
3478
  :method: MetricFu::Generator#block/block
3479
3479
  :message: is nested
@@ -3502,7 +3502,7 @@
3502
3502
  :method: MetricFu::Generator#round_to_tenths
3503
3503
  :message: refers to decimal more than self
3504
3504
  :file_path: lib/base/generator.rb
3505
- - :code_smells:
3505
+ - :code_smells:
3506
3506
  - :type: Duplication
3507
3507
  :method: MetricFu::Graph#generate
3508
3508
  :message: calls self.clazz multiple times
@@ -3516,7 +3516,7 @@
3516
3516
  :method: MetricFu::Graph#generate/block/block
3517
3517
  :message: is nested
3518
3518
  :file_path: lib/base/graph.rb
3519
- - :code_smells:
3519
+ - :code_smells:
3520
3520
  - :type: Utility Function
3521
3521
  :method: MetricFu::MD5Tracker#file_already_counted?
3522
3522
  :message: doesn't depend on instance state
@@ -3542,7 +3542,7 @@
3542
3542
  :method: MetricFu::MD5Tracker#track
3543
3543
  :message: has the variable name 'f'
3544
3544
  :file_path: lib/base/md5_tracker.rb
3545
- - :code_smells:
3545
+ - :code_smells:
3546
3546
  - :type: Duplication
3547
3547
  :method: MetricFu::Report#open_in_browser?
3548
3548
  :message: calls MetricFu.configuration multiple times
@@ -3553,7 +3553,7 @@
3553
3553
  :method: MetricFu::Report#save_output/block
3554
3554
  :message: has the variable name 'f'
3555
3555
  :file_path: lib/base/report.rb
3556
- - :code_smells:
3556
+ - :code_smells:
3557
3557
  - :type: Utility Function
3558
3558
  :method: MetricFu::Churn#Svn#clean_up_svn_line
3559
3559
  :message: doesn't depend on instance state
@@ -3582,7 +3582,7 @@
3582
3582
  :method: MetricFu::Churn#parse_log_for_changes
3583
3583
  :message: refers to changes more than self
3584
3584
  :file_path: lib/generators/churn.rb
3585
- - :code_smells:
3585
+ - :code_smells:
3586
3586
  - :type: Uncommunicative Name
3587
3587
  :method: MetricFu::Flay#analyze/block
3588
3588
  :message: has the variable name 'm'
@@ -3593,7 +3593,7 @@
3593
3593
  :method: MetricFu::Flay#to_h/block/block
3594
3594
  :message: is nested
3595
3595
  :file_path: lib/generators/flay.rb
3596
- - :code_smells:
3596
+ - :code_smells:
3597
3597
  - :type: Uncommunicative Name
3598
3598
  :method: MetricFu::Flog#ScannedMethod#to_h/block
3599
3599
  :message: has the variable name 'o'
@@ -3649,7 +3649,7 @@
3649
3649
  :method: MetricFu::Flog::Page#highest_score/block
3650
3650
  :message: has the variable name 'm'
3651
3651
  :file_path: lib/generators/flog.rb
3652
- - :code_smells:
3652
+ - :code_smells:
3653
3653
  - :type: Duplication
3654
3654
  :method: MetricFu::Rcov#analyze
3655
3655
  :message: calls files.each_pair multiple times
@@ -3669,7 +3669,7 @@
3669
3669
  :method: MetricFu::Rcov#emit
3670
3670
  :message: has approx 7 statements
3671
3671
  :file_path: lib/generators/rcov.rb
3672
- - :code_smells:
3672
+ - :code_smells:
3673
3673
  - :type: Long Method
3674
3674
  :method: MetricFu::Reek#analyze
3675
3675
  :message: has approx 9 statements
@@ -3680,7 +3680,7 @@
3680
3680
  :method: MetricFu::Reek#analyze/block/block
3681
3681
  :message: is nested
3682
3682
  :file_path: lib/generators/reek.rb
3683
- - :code_smells:
3683
+ - :code_smells:
3684
3684
  - :type: Long Method
3685
3685
  :method: MetricFu::Roodi#analyze
3686
3686
  :message: has approx 8 statements
@@ -3688,7 +3688,7 @@
3688
3688
  :method: MetricFu::Roodi#analyze/block
3689
3689
  :message: has the variable name 'm'
3690
3690
  :file_path: lib/generators/roodi.rb
3691
- - :code_smells:
3691
+ - :code_smells:
3692
3692
  - :type: Duplication
3693
3693
  :method: MetricFu::Saikuro#analyze
3694
3694
  :message: calls @files.each multiple times
@@ -3777,7 +3777,7 @@
3777
3777
  :method: MetricFu::Saikuro::SFile#self.is_valid_text_file?/block
3778
3778
  :message: has the variable name 'f'
3779
3779
  :file_path: lib/generators/saikuro.rb
3780
- - :code_smells:
3780
+ - :code_smells:
3781
3781
  - :type: Duplication
3782
3782
  :method: MetricFu::Stats#analyze
3783
3783
  :message: calls el.empty? multiple times
@@ -3803,7 +3803,7 @@
3803
3803
  :method: MetricFu::Stats#analyze/block/block
3804
3804
  :message: is nested
3805
3805
  :file_path: lib/generators/stats.rb
3806
- - :code_smells:
3806
+ - :code_smells:
3807
3807
  - :type: Duplication
3808
3808
  :method: MetricFu::FlayGrapher#get_metrics
3809
3809
  :message: calls self.labels multiple times
@@ -3817,7 +3817,7 @@
3817
3817
  :method: MetricFu::FlayGrapher#graph!
3818
3818
  :message: refers to g more than self
3819
3819
  :file_path: lib/graphs/flay_grapher.rb
3820
- - :code_smells:
3820
+ - :code_smells:
3821
3821
  - :type: Duplication
3822
3822
  :method: MetricFu::FlogGrapher#get_metrics
3823
3823
  :message: calls metrics[:flog] multiple times
@@ -3834,7 +3834,7 @@
3834
3834
  :method: MetricFu::FlogGrapher#graph!
3835
3835
  :message: refers to g more than self
3836
3836
  :file_path: lib/graphs/flog_grapher.rb
3837
- - :code_smells:
3837
+ - :code_smells:
3838
3838
  - :type: Duplication
3839
3839
  :method: MetricFu::RcovGrapher#get_metrics
3840
3840
  :message: calls self.labels multiple times
@@ -3848,7 +3848,7 @@
3848
3848
  :method: MetricFu::RcovGrapher#graph!
3849
3849
  :message: refers to g more than self
3850
3850
  :file_path: lib/graphs/rcov_grapher.rb
3851
- - :code_smells:
3851
+ - :code_smells:
3852
3852
  - :type: Duplication
3853
3853
  :method: MetricFu::ReekGrapher#get_metrics
3854
3854
  :message: calls code_smell[:type] multiple times
@@ -3874,7 +3874,7 @@
3874
3874
  :method: MetricFu::ReekGrapher#graph!
3875
3875
  :message: refers to g more than self
3876
3876
  :file_path: lib/graphs/reek_grapher.rb
3877
- - :code_smells:
3877
+ - :code_smells:
3878
3878
  - :type: Duplication
3879
3879
  :method: MetricFu::RoodiGrapher#get_metrics
3880
3880
  :message: calls self.labels multiple times
@@ -3888,12 +3888,12 @@
3888
3888
  :method: MetricFu::RoodiGrapher#graph!
3889
3889
  :message: refers to g more than self
3890
3890
  :file_path: lib/graphs/roodi_grapher.rb
3891
- - :code_smells:
3891
+ - :code_smells:
3892
3892
  - :type: Uncommunicative Name
3893
3893
  :method: block
3894
3894
  :message: has the variable name 'l'
3895
3895
  :file_path: lib/metric_fu.rb
3896
- - :code_smells:
3896
+ - :code_smells:
3897
3897
  - :type: Utility Function
3898
3898
  :method: AwesomeTemplate#this_directory
3899
3899
  :message: doesn't depend on instance state
@@ -3913,7 +3913,7 @@
3913
3913
  :method: AwesomeTemplate#write
3914
3914
  :message: has approx 12 statements
3915
3915
  :file_path: lib/templates/awesome/awesome_template.rb
3916
- - :code_smells:
3916
+ - :code_smells:
3917
3917
  - :type: Utility Function
3918
3918
  :method: StandardTemplate#this_directory
3919
3919
  :message: doesn't depend on instance state
@@ -3930,8 +3930,8 @@
3930
3930
  :method: StandardTemplate#write
3931
3931
  :message: has approx 9 statements
3932
3932
  :file_path: lib/templates/standard/standard_template.rb
3933
- :roodi:
3934
- :problems:
3933
+ :roodi:
3934
+ :problems:
3935
3935
  - :line: "110"
3936
3936
  :problem: Method name "get_elements" cyclomatic complexity is 9. It should be 8 or less.
3937
3937
  :file: lib/generators/saikuro.rb
@@ -3971,10 +3971,10 @@
3971
3971
  - :line: "112"
3972
3972
  :problem: Found = in conditional. It should probably be an ==
3973
3973
  :file: lib/generators/saikuro.rb
3974
- :total:
3974
+ :total:
3975
3975
  - Found 13 errors.
3976
- :saikuro:
3977
- :methods:
3976
+ :saikuro:
3977
+ :methods:
3978
3978
  - :complexity: 12
3979
3979
  :name: MetricFu::Saikuro#analyze
3980
3980
  :lines: 31
@@ -4383,15 +4383,15 @@
4383
4383
  - :complexity: 1
4384
4384
  :name: MetricFu::FlayGrapher#graph!
4385
4385
  :lines: 12
4386
- :files:
4386
+ :files:
4387
4387
  - :filename: flog.rb
4388
- :classes:
4388
+ :classes:
4389
4389
  - :methods: []
4390
4390
 
4391
4391
  :complexity: 0
4392
4392
  :lines: 5
4393
4393
  :class_name: MetricFu
4394
- - :methods:
4394
+ - :methods:
4395
4395
  - :complexity: 8
4396
4396
  :name: MetricFu::Flog#parse
4397
4397
  :lines: 15
@@ -4428,7 +4428,7 @@
4428
4428
  :complexity: 36
4429
4429
  :lines: 109
4430
4430
  :class_name: MetricFu::Flog
4431
- - :methods:
4431
+ - :methods:
4432
4432
  - :complexity: 1
4433
4433
  :name: MetricFu::Flog::Operator#to_h
4434
4434
  :lines: 2
@@ -4438,7 +4438,7 @@
4438
4438
  :complexity: 2
4439
4439
  :lines: 11
4440
4440
  :class_name: MetricFu::Flog::Operator
4441
- - :methods:
4441
+ - :methods:
4442
4442
  - :complexity: 2
4443
4443
  :name: MetricFu::Flog::ScannedMethod#to_h
4444
4444
  :lines: 4
@@ -4449,13 +4449,13 @@
4449
4449
  :lines: 14
4450
4450
  :class_name: MetricFu::Flog::ScannedMethod
4451
4451
  - :filename: saikuro.rb
4452
- :classes:
4452
+ :classes:
4453
4453
  - :methods: []
4454
4454
 
4455
4455
  :complexity: 0
4456
4456
  :lines: 7
4457
4457
  :class_name: MetricFu
4458
- - :methods:
4458
+ - :methods:
4459
4459
  - :complexity: 12
4460
4460
  :name: MetricFu::Saikuro#analyze
4461
4461
  :lines: 31
@@ -4505,13 +4505,13 @@
4505
4505
  :lines: 200
4506
4506
  :class_name: MetricFu::Saikuro
4507
4507
  - :filename: generator.rb
4508
- :classes:
4508
+ :classes:
4509
4509
  - :methods: []
4510
4510
 
4511
4511
  :complexity: 0
4512
4512
  :lines: 32
4513
4513
  :class_name: MetricFu
4514
- - :methods:
4514
+ - :methods:
4515
4515
  - :complexity: 2
4516
4516
  :name: MetricFu::Generator#create_metric_dir_if_missing
4517
4517
  :lines: 4
@@ -4558,15 +4558,15 @@
4558
4558
  :lines: 115
4559
4559
  :class_name: MetricFu::Generator
4560
4560
  - :filename: configuration.rb
4561
- :classes:
4562
- - :methods:
4561
+ :classes:
4562
+ - :methods:
4563
4563
  - :complexity: 1
4564
4564
  :name: MetricFu#self.configuration
4565
4565
  :lines: 2
4566
4566
  :complexity: 1
4567
4567
  :lines: 51
4568
4568
  :class_name: MetricFu
4569
- - :methods:
4569
+ - :methods:
4570
4570
  - :complexity: 5
4571
4571
  :name: MetricFu::Configuration#warn_about_deprecated_config_options
4572
4572
  :lines: 14
@@ -4607,13 +4607,13 @@
4607
4607
  :lines: 151
4608
4608
  :class_name: MetricFu::Configuration
4609
4609
  - :filename: base_template.rb
4610
- :classes:
4610
+ :classes:
4611
4611
  - :methods: []
4612
4612
 
4613
4613
  :complexity: 0
4614
4614
  :lines: 10
4615
4615
  :class_name: MetricFu
4616
- - :methods:
4616
+ - :methods:
4617
4617
  - :complexity: 3
4618
4618
  :name: MetricFu::Template#link_content
4619
4619
  :lines: 8
@@ -4648,13 +4648,13 @@
4648
4648
  :lines: 135
4649
4649
  :class_name: MetricFu::Template
4650
4650
  - :filename: rcov.rb
4651
- :classes:
4651
+ :classes:
4652
4652
  - :methods: []
4653
4653
 
4654
4654
  :complexity: 0
4655
4655
  :lines: 3
4656
4656
  :class_name: MetricFu
4657
- - :methods:
4657
+ - :methods:
4658
4658
  - :complexity: 8
4659
4659
  :name: MetricFu::Rcov#analyze
4660
4660
  :lines: 30
@@ -4670,7 +4670,7 @@
4670
4670
  :complexity: 15
4671
4671
  :lines: 70
4672
4672
  :class_name: MetricFu::Rcov
4673
- - :methods:
4673
+ - :methods:
4674
4674
  - :complexity: 1
4675
4675
  :name: MetricFu::Rcov::Line#to_h
4676
4676
  :lines: 2
@@ -4681,13 +4681,13 @@
4681
4681
  :lines: 11
4682
4682
  :class_name: MetricFu::Rcov::Line
4683
4683
  - :filename: churn.rb
4684
- :classes:
4684
+ :classes:
4685
4685
  - :methods: []
4686
4686
 
4687
4687
  :complexity: 0
4688
4688
  :lines: 3
4689
4689
  :class_name: MetricFu
4690
- - :methods:
4690
+ - :methods:
4691
4691
  - :complexity: 3
4692
4692
  :name: MetricFu::Churn#parse_log_for_changes
4693
4693
  :lines: 8
@@ -4709,14 +4709,14 @@
4709
4709
  :complexity: 13
4710
4710
  :lines: 51
4711
4711
  :class_name: MetricFu::Churn
4712
- - :methods:
4712
+ - :methods:
4713
4713
  - :complexity: 1
4714
4714
  :name: MetricFu::Churn::SourceControl#initialize
4715
4715
  :lines: 2
4716
4716
  :complexity: 1
4717
4717
  :lines: 4
4718
4718
  :class_name: MetricFu::Churn::SourceControl
4719
- - :methods:
4719
+ - :methods:
4720
4720
  - :complexity: 2
4721
4721
  :name: MetricFu::Churn::Git#date_range
4722
4722
  :lines: 5
@@ -4726,7 +4726,7 @@
4726
4726
  :complexity: 4
4727
4727
  :lines: 13
4728
4728
  :class_name: MetricFu::Churn::Git
4729
- - :methods:
4729
+ - :methods:
4730
4730
  - :complexity: 2
4731
4731
  :name: MetricFu::Churn::Svn#clean_up_svn_line
4732
4732
  :lines: 3
@@ -4740,13 +4740,13 @@
4740
4740
  :lines: 17
4741
4741
  :class_name: MetricFu::Churn::Svn
4742
4742
  - :filename: stats.rb
4743
- :classes:
4743
+ :classes:
4744
4744
  - :methods: []
4745
4745
 
4746
4746
  :complexity: 0
4747
4747
  :lines: 3
4748
4748
  :class_name: MetricFu
4749
- - :methods:
4749
+ - :methods:
4750
4750
  - :complexity: 9
4751
4751
  :name: MetricFu::Stats#analyze
4752
4752
  :lines: 27
@@ -4760,13 +4760,13 @@
4760
4760
  :lines: 39
4761
4761
  :class_name: MetricFu::Stats
4762
4762
  - :filename: reek.rb
4763
- :classes:
4763
+ :classes:
4764
4764
  - :methods: []
4765
4765
 
4766
4766
  :complexity: 0
4767
4767
  :lines: 3
4768
4768
  :class_name: MetricFu
4769
- - :methods:
4769
+ - :methods:
4770
4770
  - :complexity: 5
4771
4771
  :name: MetricFu::Reek#analyze
4772
4772
  :lines: 14
@@ -4783,13 +4783,13 @@
4783
4783
  :lines: 33
4784
4784
  :class_name: MetricFu::Reek
4785
4785
  - :filename: roodi.rb
4786
- :classes:
4786
+ :classes:
4787
4787
  - :methods: []
4788
4788
 
4789
4789
  :complexity: 0
4790
4790
  :lines: 2
4791
4791
  :class_name: MetricFu
4792
- - :methods:
4792
+ - :methods:
4793
4793
  - :complexity: 4
4794
4794
  :name: MetricFu::Roodi#analyze
4795
4795
  :lines: 10
@@ -4806,15 +4806,15 @@
4806
4806
  :lines: 28
4807
4807
  :class_name: MetricFu::Roodi
4808
4808
  - :filename: report.rb
4809
- :classes:
4810
- - :methods:
4809
+ :classes:
4810
+ - :methods:
4811
4811
  - :complexity: 1
4812
4812
  :name: MetricFu#self.report
4813
4813
  :lines: 2
4814
4814
  :complexity: 1
4815
4815
  :lines: 19
4816
4816
  :class_name: MetricFu
4817
- - :methods:
4817
+ - :methods:
4818
4818
  - :complexity: 2
4819
4819
  :name: MetricFu::Report#show_in_browser
4820
4820
  :lines: 2
@@ -4840,13 +4840,13 @@
4840
4840
  :lines: 80
4841
4841
  :class_name: MetricFu::Report
4842
4842
  - :filename: flay.rb
4843
- :classes:
4843
+ :classes:
4844
4844
  - :methods: []
4845
4845
 
4846
4846
  :complexity: 0
4847
4847
  :lines: 3
4848
4848
  :class_name: MetricFu
4849
- - :methods:
4849
+ - :methods:
4850
4850
  - :complexity: 3
4851
4851
  :name: MetricFu::Flay#to_h
4852
4852
  :lines: 12
@@ -4863,13 +4863,13 @@
4863
4863
  :lines: 29
4864
4864
  :class_name: MetricFu::Flay
4865
4865
  - :filename: reek_grapher.rb
4866
- :classes:
4866
+ :classes:
4867
4867
  - :methods: []
4868
4868
 
4869
4869
  :complexity: 0
4870
4870
  :lines: 4
4871
4871
  :class_name: MetricFu
4872
- - :methods:
4872
+ - :methods:
4873
4873
  - :complexity: 5
4874
4874
  :name: MetricFu::ReekGrapher#get_metrics
4875
4875
  :lines: 11
@@ -4883,7 +4883,7 @@
4883
4883
  :lines: 38
4884
4884
  :class_name: MetricFu::ReekGrapher
4885
4885
  - :filename: md5_tracker.rb
4886
- :classes:
4886
+ :classes:
4887
4887
  - :methods: []
4888
4888
 
4889
4889
  :complexity: 0
@@ -4894,7 +4894,7 @@
4894
4894
  :complexity: 0
4895
4895
  :lines: 5
4896
4896
  :class_name: MetricFu::MD5Tracker
4897
- - :methods:
4897
+ - :methods:
4898
4898
  - :complexity: 4
4899
4899
  :name: MetricFu::MD5Tracker::#file_changed?
4900
4900
  :lines: 16
@@ -4914,15 +4914,15 @@
4914
4914
  :lines: 41
4915
4915
  :class_name: "MetricFu::MD5Tracker::"
4916
4916
  - :filename: graph.rb
4917
- :classes:
4918
- - :methods:
4917
+ :classes:
4918
+ - :methods:
4919
4919
  - :complexity: 1
4920
4920
  :name: MetricFu#self.graph
4921
4921
  :lines: 2
4922
4922
  :complexity: 1
4923
4923
  :lines: 7
4924
4924
  :class_name: MetricFu
4925
- - :methods:
4925
+ - :methods:
4926
4926
  - :complexity: 4
4927
4927
  :name: MetricFu::Graph#generate
4928
4928
  :lines: 14
@@ -4936,8 +4936,8 @@
4936
4936
  :lines: 29
4937
4937
  :class_name: MetricFu::Graph
4938
4938
  - :filename: awesome_template.rb
4939
- :classes:
4940
- - :methods:
4939
+ :classes:
4940
+ - :methods:
4941
4941
  - :complexity: 4
4942
4942
  :name: AwesomeTemplate#write
4943
4943
  :lines: 21
@@ -4948,8 +4948,8 @@
4948
4948
  :lines: 28
4949
4949
  :class_name: AwesomeTemplate
4950
4950
  - :filename: standard_template.rb
4951
- :classes:
4952
- - :methods:
4951
+ :classes:
4952
+ - :methods:
4953
4953
  - :complexity: 4
4954
4954
  :name: StandardTemplate#write
4955
4955
  :lines: 16
@@ -4960,13 +4960,13 @@
4960
4960
  :lines: 24
4961
4961
  :class_name: StandardTemplate
4962
4962
  - :filename: roodi_grapher.rb
4963
- :classes:
4963
+ :classes:
4964
4964
  - :methods: []
4965
4965
 
4966
4966
  :complexity: 0
4967
4967
  :lines: 4
4968
4968
  :class_name: MetricFu
4969
- - :methods:
4969
+ - :methods:
4970
4970
  - :complexity: 1
4971
4971
  :name: MetricFu::RoodiGrapher#graph!
4972
4972
  :lines: 12
@@ -4980,13 +4980,13 @@
4980
4980
  :lines: 28
4981
4981
  :class_name: MetricFu::RoodiGrapher
4982
4982
  - :filename: rcov_grapher.rb
4983
- :classes:
4983
+ :classes:
4984
4984
  - :methods: []
4985
4985
 
4986
4986
  :complexity: 0
4987
4987
  :lines: 4
4988
4988
  :class_name: MetricFu
4989
- - :methods:
4989
+ - :methods:
4990
4990
  - :complexity: 1
4991
4991
  :name: MetricFu::RcovGrapher#graph!
4992
4992
  :lines: 12
@@ -5000,13 +5000,13 @@
5000
5000
  :lines: 28
5001
5001
  :class_name: MetricFu::RcovGrapher
5002
5002
  - :filename: flog_grapher.rb
5003
- :classes:
5003
+ :classes:
5004
5004
  - :methods: []
5005
5005
 
5006
5006
  :complexity: 0
5007
5007
  :lines: 4
5008
5008
  :class_name: MetricFu
5009
- - :methods:
5009
+ - :methods:
5010
5010
  - :complexity: 1
5011
5011
  :name: MetricFu::FlogGrapher#graph!
5012
5012
  :lines: 13
@@ -5020,13 +5020,13 @@
5020
5020
  :lines: 31
5021
5021
  :class_name: MetricFu::FlogGrapher
5022
5022
  - :filename: flay_grapher.rb
5023
- :classes:
5023
+ :classes:
5024
5024
  - :methods: []
5025
5025
 
5026
5026
  :complexity: 0
5027
5027
  :lines: 4
5028
5028
  :class_name: MetricFu
5029
- - :methods:
5029
+ - :methods:
5030
5030
  - :complexity: 1
5031
5031
  :name: MetricFu::FlayGrapher#graph!
5032
5032
  :lines: 12
@@ -5040,7 +5040,7 @@
5040
5040
  :lines: 28
5041
5041
  :class_name: MetricFu::FlayGrapher
5042
5042
  - :filename: metric_fu.rb
5043
- :classes:
5043
+ :classes:
5044
5044
  - :methods: []
5045
5045
 
5046
5046
  :complexity: 1
@@ -5051,8 +5051,8 @@
5051
5051
  :complexity: 0
5052
5052
  :lines: 2
5053
5053
  :class_name: MetricFu
5054
- :classes:
5055
- - :defs:
5054
+ :classes:
5055
+ - :defs:
5056
5056
  - :complexity: 2
5057
5057
  :name: MetricFu::Flog#self.verify_dependencies!
5058
5058
  :lines: 3
@@ -5077,7 +5077,7 @@
5077
5077
  :complexity: 29
5078
5078
  :name: MetricFu::Flog
5079
5079
  :lines: 83
5080
- - :defs:
5080
+ - :defs:
5081
5081
  - :complexity: 1
5082
5082
  :name: MetricFu::Saikuro#initialize
5083
5083
  :lines: 5
@@ -5102,7 +5102,7 @@
5102
5102
  :complexity: 24
5103
5103
  :name: MetricFu::Saikuro
5104
5104
  :lines: 91
5105
- - :defs:
5105
+ - :defs:
5106
5106
  - :complexity: 1
5107
5107
  :name: MetricFu::Generator#initialize
5108
5108
  :lines: 5
@@ -5148,7 +5148,7 @@
5148
5148
  :complexity: 22
5149
5149
  :name: MetricFu::Generator
5150
5150
  :lines: 115
5151
- - :defs:
5151
+ - :defs:
5152
5152
  - :complexity: 4
5153
5153
  :name: MetricFu::Saikuro#emit
5154
5154
  :lines: 17
@@ -5167,7 +5167,7 @@
5167
5167
  :complexity: 22
5168
5168
  :name: MetricFu::Saikuro
5169
5169
  :lines: 75
5170
- - :defs:
5170
+ - :defs:
5171
5171
  - :complexity: 1
5172
5172
  :name: MetricFu::Configuration#initialize
5173
5173
  :lines: 5
@@ -5207,7 +5207,7 @@
5207
5207
  :complexity: 20
5208
5208
  :name: MetricFu::Configuration
5209
5209
  :lines: 151
5210
- - :defs:
5210
+ - :defs:
5211
5211
  - :complexity: 1
5212
5212
  :name: MetricFu::Template#erbify
5213
5213
  :lines: 4
@@ -5241,7 +5241,7 @@
5241
5241
  :complexity: 16
5242
5242
  :name: MetricFu::Template
5243
5243
  :lines: 135
5244
- - :defs:
5244
+ - :defs:
5245
5245
  - :complexity: 3
5246
5246
  :name: MetricFu::Rcov#self.verify_dependencies!
5247
5247
  :lines: 9
@@ -5257,7 +5257,7 @@
5257
5257
  :complexity: 15
5258
5258
  :name: MetricFu::Rcov
5259
5259
  :lines: 70
5260
- - :defs:
5260
+ - :defs:
5261
5261
  - :complexity: 3
5262
5262
  :name: MetricFu::Churn#initialize
5263
5263
  :lines: 10
@@ -5279,7 +5279,7 @@
5279
5279
  :complexity: 13
5280
5280
  :name: MetricFu::Churn
5281
5281
  :lines: 51
5282
- - :defs:
5282
+ - :defs:
5283
5283
  - :complexity: 1
5284
5284
  :name: MetricFu::Stats#emit
5285
5285
  :lines: 2
@@ -5292,7 +5292,7 @@
5292
5292
  :complexity: 11
5293
5293
  :name: MetricFu::Stats
5294
5294
  :lines: 39
5295
- - :defs:
5295
+ - :defs:
5296
5296
  - :complexity: 2
5297
5297
  :name: MetricFu::Reek#self.verify_dependencies!
5298
5298
  :lines: 3
@@ -5308,7 +5308,7 @@
5308
5308
  :complexity: 10
5309
5309
  :name: MetricFu::Reek
5310
5310
  :lines: 33
5311
- - :defs:
5311
+ - :defs:
5312
5312
  - :complexity: 1
5313
5313
  :name: MetricFu::Report#to_yaml
5314
5314
  :lines: 2
@@ -5333,7 +5333,7 @@
5333
5333
  :complexity: 9
5334
5334
  :name: MetricFu::Report
5335
5335
  :lines: 80
5336
- - :defs:
5336
+ - :defs:
5337
5337
  - :complexity: 2
5338
5338
  :name: MetricFu::Flay#self.verify_dependencies!
5339
5339
  :lines: 3
@@ -5349,7 +5349,7 @@
5349
5349
  :complexity: 9
5350
5350
  :name: MetricFu::Flay
5351
5351
  :lines: 29
5352
- - :defs:
5352
+ - :defs:
5353
5353
  - :complexity: 2
5354
5354
  :name: MetricFu::Roodi#self.verify_dependencies!
5355
5355
  :lines: 3
@@ -5365,7 +5365,7 @@
5365
5365
  :complexity: 9
5366
5366
  :name: MetricFu::Roodi
5367
5367
  :lines: 28
5368
- - :defs:
5368
+ - :defs:
5369
5369
  - :complexity: 1
5370
5370
  :name: MetricFu::ReekGrapher#initialize
5371
5371
  :lines: 3
@@ -5378,7 +5378,7 @@
5378
5378
  :complexity: 8
5379
5379
  :name: MetricFu::ReekGrapher
5380
5380
  :lines: 38
5381
- - :defs:
5381
+ - :defs:
5382
5382
  - :complexity: 1
5383
5383
  :name: MetricFu::MD5Tracker::#md5_dir
5384
5384
  :lines: 3
@@ -5397,7 +5397,7 @@
5397
5397
  :complexity: 8
5398
5398
  :name: "MetricFu::MD5Tracker::"
5399
5399
  :lines: 41
5400
- - :defs:
5400
+ - :defs:
5401
5401
  - :complexity: 1
5402
5402
  :name: MetricFu::Flog#initialize
5403
5403
  :lines: 4
@@ -5413,7 +5413,7 @@
5413
5413
  :complexity: 7
5414
5414
  :name: MetricFu::Flog
5415
5415
  :lines: 26
5416
- - :defs:
5416
+ - :defs:
5417
5417
  - :complexity: 2
5418
5418
  :name: MetricFu::Churn::Svn#get_logs
5419
5419
  :lines: 2
@@ -5426,7 +5426,7 @@
5426
5426
  :complexity: 6
5427
5427
  :name: MetricFu::Churn::Svn
5428
5428
  :lines: 17
5429
- - :defs:
5429
+ - :defs:
5430
5430
  - :complexity: 1
5431
5431
  :name: MetricFu::Graph#initialize
5432
5432
  :lines: 2
@@ -5439,7 +5439,7 @@
5439
5439
  :complexity: 6
5440
5440
  :name: MetricFu::Graph
5441
5441
  :lines: 29
5442
- - :defs:
5442
+ - :defs:
5443
5443
  - :complexity: 4
5444
5444
  :name: StandardTemplate#write
5445
5445
  :lines: 16
@@ -5449,7 +5449,7 @@
5449
5449
  :complexity: 5
5450
5450
  :name: StandardTemplate
5451
5451
  :lines: 24
5452
- - :defs:
5452
+ - :defs:
5453
5453
  - :complexity: 1
5454
5454
  :name: MetricFu::Saikuro#initialize
5455
5455
  :lines: 7
@@ -5462,7 +5462,7 @@
5462
5462
  :complexity: 5
5463
5463
  :name: MetricFu::Saikuro
5464
5464
  :lines: 34
5465
- - :defs:
5465
+ - :defs:
5466
5466
  - :complexity: 4
5467
5467
  :name: AwesomeTemplate#write
5468
5468
  :lines: 21
@@ -5472,7 +5472,7 @@
5472
5472
  :complexity: 5
5473
5473
  :name: AwesomeTemplate
5474
5474
  :lines: 28
5475
- - :defs:
5475
+ - :defs:
5476
5476
  - :complexity: 2
5477
5477
  :name: MetricFu::Churn::Git#get_logs
5478
5478
  :lines: 2
@@ -5482,7 +5482,7 @@
5482
5482
  :complexity: 4
5483
5483
  :name: MetricFu::Churn::Git
5484
5484
  :lines: 13
5485
- - :defs:
5485
+ - :defs:
5486
5486
  - :complexity: 1
5487
5487
  :name: MetricFu::RoodiGrapher#initialize
5488
5488
  :lines: 3
@@ -5495,7 +5495,7 @@
5495
5495
  :complexity: 3
5496
5496
  :name: MetricFu::RoodiGrapher
5497
5497
  :lines: 28
5498
- - :defs:
5498
+ - :defs:
5499
5499
  - :complexity: 1
5500
5500
  :name: MetricFu::Flog::ScannedMethod#initialize
5501
5501
  :lines: 4
@@ -5505,7 +5505,7 @@
5505
5505
  :complexity: 3
5506
5506
  :name: MetricFu::Flog::ScannedMethod
5507
5507
  :lines: 14
5508
- - :defs:
5508
+ - :defs:
5509
5509
  - :complexity: 1
5510
5510
  :name: MetricFu::FlayGrapher#initialize
5511
5511
  :lines: 3
@@ -5518,7 +5518,7 @@
5518
5518
  :complexity: 3
5519
5519
  :name: MetricFu::FlayGrapher
5520
5520
  :lines: 28
5521
- - :defs:
5521
+ - :defs:
5522
5522
  - :complexity: 1
5523
5523
  :name: MetricFu::RcovGrapher#initialize
5524
5524
  :lines: 3
@@ -5531,7 +5531,7 @@
5531
5531
  :complexity: 3
5532
5532
  :name: MetricFu::RcovGrapher
5533
5533
  :lines: 28
5534
- - :defs:
5534
+ - :defs:
5535
5535
  - :complexity: 1
5536
5536
  :name: MetricFu::FlogGrapher#initialize
5537
5537
  :lines: 4
@@ -5544,7 +5544,7 @@
5544
5544
  :complexity: 3
5545
5545
  :name: MetricFu::FlogGrapher
5546
5546
  :lines: 31
5547
- - :defs:
5547
+ - :defs:
5548
5548
  - :complexity: 1
5549
5549
  :name: MetricFu::Flog::Operator#initialize
5550
5550
  :lines: 3
@@ -5554,7 +5554,7 @@
5554
5554
  :complexity: 2
5555
5555
  :name: MetricFu::Flog::Operator
5556
5556
  :lines: 11
5557
- - :defs:
5557
+ - :defs:
5558
5558
  - :complexity: 1
5559
5559
  :name: MetricFu::Rcov::Line#initialize
5560
5560
  :lines: 3
@@ -5564,21 +5564,21 @@
5564
5564
  :complexity: 2
5565
5565
  :name: MetricFu::Rcov::Line
5566
5566
  :lines: 11
5567
- - :defs:
5567
+ - :defs:
5568
5568
  - :complexity: 1
5569
5569
  :name: MetricFu#self.report
5570
5570
  :lines: 2
5571
5571
  :complexity: 1
5572
5572
  :name: MetricFu
5573
5573
  :lines: 19
5574
- - :defs:
5574
+ - :defs:
5575
5575
  - :complexity: 1
5576
5576
  :name: MetricFu#self.graph
5577
5577
  :lines: 2
5578
5578
  :complexity: 1
5579
5579
  :name: MetricFu
5580
5580
  :lines: 7
5581
- - :defs:
5581
+ - :defs:
5582
5582
  - :complexity: 1
5583
5583
  :name: MetricFu::Churn::SourceControl#initialize
5584
5584
  :lines: 2
@@ -5588,7 +5588,7 @@
5588
5588
  - :complexity: 1
5589
5589
  :name: ""
5590
5590
  :lines: 0
5591
- - :defs:
5591
+ - :defs:
5592
5592
  - :complexity: 1
5593
5593
  :name: MetricFu#self.configuration
5594
5594
  :lines: 2
@@ -5649,8 +5649,8 @@
5649
5649
  - :complexity: 0
5650
5650
  :name: MetricFu
5651
5651
  :lines: 5
5652
- :churn:
5653
- :changes:
5652
+ :churn:
5653
+ :changes:
5654
5654
  - :times_changed: 79
5655
5655
  :file_path: metric_fu.gemspec
5656
5656
  - :times_changed: 30
@@ -5781,14 +5781,14 @@
5781
5781
  :file_path: lib/templates/churn.html.erb
5782
5782
  - :times_changed: 5
5783
5783
  :file_path: spec/flay_spec.rb
5784
- :flog:
5785
- :pages:
5784
+ :flog:
5785
+ :pages:
5786
5786
  - :average_score: 14.4
5787
5787
  :path: /lib/generators/saikuro.rb
5788
- :scanned_methods:
5788
+ :scanned_methods:
5789
5789
  - :score: 66.1
5790
5790
  :name: Saikuro#analyze
5791
- :operators:
5791
+ :operators:
5792
5792
  - :operator: assignment
5793
5793
  :score: 29.6
5794
5794
  - :operator: branch
@@ -5827,7 +5827,7 @@
5827
5827
  :score: 1.3
5828
5828
  - :score: 44.8
5829
5829
  :name: Saikuro::SFile#merge_classes
5830
- :operators:
5830
+ :operators:
5831
5831
  - :operator: assignment
5832
5832
  :score: 23.1
5833
5833
  - :operator: branch
@@ -5868,7 +5868,7 @@
5868
5868
  :score: 1.5
5869
5869
  - :score: 25.7
5870
5870
  :name: Saikuro::SFile#get_elements
5871
- :operators:
5871
+ :operators:
5872
5872
  - :operator: branch
5873
5873
  :score: 12.9
5874
5874
  - :operator: assignment
@@ -5885,7 +5885,7 @@
5885
5885
  :score: 1.8
5886
5886
  - :score: 25.0
5887
5887
  :name: Saikuro#emit
5888
- :operators:
5888
+ :operators:
5889
5889
  - :operator: assignment
5890
5890
  :score: 13.6
5891
5891
  - :operator: branch
@@ -5916,7 +5916,7 @@
5916
5916
  :score: 0.5
5917
5917
  - :score: 21.2
5918
5918
  :name: Saikuro::ParsingElement#initialize
5919
- :operators:
5919
+ :operators:
5920
5920
  - :operator: assignment
5921
5921
  :score: 7.8
5922
5922
  - :operator: match
@@ -5929,7 +5929,7 @@
5929
5929
  :score: 1.7
5930
5930
  - :score: 13.5
5931
5931
  :name: Saikuro#to_h
5932
- :operators:
5932
+ :operators:
5933
5933
  - :operator: assignment
5934
5934
  :score: 8.5
5935
5935
  - :operator: to_h
@@ -5942,7 +5942,7 @@
5942
5942
  :score: 1.5
5943
5943
  - :score: 12.0
5944
5944
  :name: Saikuro::ParsingElement#to_h
5945
- :operators:
5945
+ :operators:
5946
5946
  - :operator: assignment
5947
5947
  :score: 7.6
5948
5948
  - :operator: branch
@@ -5959,7 +5959,7 @@
5959
5959
  :score: 1.3
5960
5960
  - :score: 8.4
5961
5961
  :name: Saikuro::SFile#get_class_names
5962
- :operators:
5962
+ :operators:
5963
5963
  - :operator: name
5964
5964
  :score: 3.3
5965
5965
  - :operator: branch
@@ -5974,7 +5974,7 @@
5974
5974
  :score: 1.3
5975
5975
  - :score: 7.4
5976
5976
  :name: Saikuro::SFile#is_valid_text_file?
5977
- :operators:
5977
+ :operators:
5978
5978
  - :operator: branch
5979
5979
  :score: 4.1
5980
5980
  - :operator: readline
@@ -5989,7 +5989,7 @@
5989
5989
  :score: 1.3
5990
5990
  - :score: 4.7
5991
5991
  :name: Saikuro::SFile#initialize
5992
- :operators:
5992
+ :operators:
5993
5993
  - :operator: assignment
5994
5994
  :score: 3.9
5995
5995
  - :operator: get_elements
@@ -5998,7 +5998,7 @@
5998
5998
  :score: 1.3
5999
5999
  - :score: 4.7
6000
6000
  :name: Saikuro#format_directories
6001
- :operators:
6001
+ :operators:
6002
6002
  - :operator: saikuro
6003
6003
  :score: 1.7
6004
6004
  - :operator: "[]"
@@ -6009,48 +6009,48 @@
6009
6009
  :score: 1.3
6010
6010
  - :score: 2.8
6011
6011
  :name: Saikuro::ParsingElement#<<
6012
- :operators:
6012
+ :operators:
6013
6013
  - :operator: new
6014
6014
  :score: 1.5
6015
6015
  - :operator: "<<"
6016
6016
  :score: 1.3
6017
6017
  - :score: 2.8
6018
6018
  :name: Saikuro#saikuro_results
6019
- :operators:
6019
+ :operators:
6020
6020
  - :operator: metric_directory
6021
6021
  :score: 1.5
6022
6022
  - :operator: glob
6023
6023
  :score: 1.3
6024
6024
  - :score: 2.4
6025
6025
  :name: Saikuro::ParsingElement#none
6026
- :operators:
6026
+ :operators:
6027
6027
  - :operator: attr_accessor
6028
6028
  :score: 1.2
6029
6029
  - :operator: attr_reader
6030
6030
  :score: 1.2
6031
6031
  - :score: 1.3
6032
6032
  :name: Saikuro::SFile#filename
6033
- :operators:
6033
+ :operators:
6034
6034
  - :operator: basename
6035
6035
  :score: 1.3
6036
6036
  - :score: 1.3
6037
6037
  :name: Saikuro::SFile#to_h
6038
- :operators:
6038
+ :operators:
6039
6039
  - :operator: merge_classes
6040
6040
  :score: 1.3
6041
6041
  - :score: 1.2
6042
6042
  :name: Saikuro::SFile#none
6043
- :operators:
6043
+ :operators:
6044
6044
  - :operator: attr_reader
6045
6045
  :score: 1.2
6046
6046
  :highest_score: 66.1
6047
6047
  :score: 245.2
6048
6048
  - :average_score: 9.7
6049
6049
  :path: /lib/generators/flog.rb
6050
- :scanned_methods:
6050
+ :scanned_methods:
6051
6051
  - :score: 44.1
6052
6052
  :name: Flog#parse
6053
- :operators:
6053
+ :operators:
6054
6054
  - :operator: assignment
6055
6055
  :score: 14.8
6056
6056
  - :operator: branch
@@ -6081,7 +6081,7 @@
6081
6081
  :score: 1.3
6082
6082
  - :score: 30.7
6083
6083
  :name: Flog#emit
6084
- :operators:
6084
+ :operators:
6085
6085
  - :operator: branch
6086
6086
  :score: 9.4
6087
6087
  - :operator: assignment
@@ -6110,7 +6110,7 @@
6110
6110
  :score: 1.5
6111
6111
  - :score: 28.5
6112
6112
  :name: Flog#to_h
6113
- :operators:
6113
+ :operators:
6114
6114
  - :operator: assignment
6115
6115
  :score: 18.1
6116
6116
  - :operator: branch
@@ -6137,7 +6137,7 @@
6137
6137
  :score: 1.3
6138
6138
  - :score: 17.6
6139
6139
  :name: Flog#analyze
6140
- :operators:
6140
+ :operators:
6141
6141
  - :operator: assignment
6142
6142
  :score: 7.7
6143
6143
  - :operator: branch
@@ -6160,7 +6160,7 @@
6160
6160
  :score: 1.3
6161
6161
  - :score: 9.9
6162
6162
  :name: Flog::Page#highest_score
6163
- :operators:
6163
+ :operators:
6164
6164
  - :operator: assignment
6165
6165
  :score: 4.2
6166
6166
  - :operator: score
@@ -6175,7 +6175,7 @@
6175
6175
  :score: 1.4
6176
6176
  - :score: 6.9
6177
6177
  :name: Flog::Page#to_h
6178
- :operators:
6178
+ :operators:
6179
6179
  - :operator: to_h
6180
6180
  :score: 1.4
6181
6181
  - :operator: assignment
@@ -6192,21 +6192,21 @@
6192
6192
  :score: 1.3
6193
6193
  - :score: 5.8
6194
6194
  :name: Flog::Page#initialize
6195
- :operators:
6195
+ :operators:
6196
6196
  - :operator: assignment
6197
6197
  :score: 5.2
6198
6198
  - :operator: to_f
6199
6199
  :score: 2.6
6200
6200
  - :score: 5.8
6201
6201
  :name: ScannedMethod#initialize
6202
- :operators:
6202
+ :operators:
6203
6203
  - :operator: assignment
6204
6204
  :score: 5.6
6205
6205
  - :operator: to_f
6206
6206
  :score: 1.4
6207
6207
  - :score: 4.3
6208
6208
  :name: Flog#average_score
6209
- :operators:
6209
+ :operators:
6210
6210
  - :operator: /
6211
6211
  :score: 1.5
6212
6212
  - :operator: branch
@@ -6217,7 +6217,7 @@
6217
6217
  :score: 1.3
6218
6218
  - :score: 3.6
6219
6219
  :name: ScannedMethod#to_h
6220
- :operators:
6220
+ :operators:
6221
6221
  - :operator: assignment
6222
6222
  :score: 1.5
6223
6223
  - :operator: to_h
@@ -6228,14 +6228,14 @@
6228
6228
  :score: 1.4
6229
6229
  - :score: 3.1
6230
6230
  :name: Operator#initialize
6231
- :operators:
6231
+ :operators:
6232
6232
  - :operator: assignment
6233
6233
  :score: 2.8
6234
6234
  - :operator: to_f
6235
6235
  :score: 1.4
6236
6236
  - :score: 3.0
6237
6237
  :name: Flog#verify_dependencies!
6238
- :operators:
6238
+ :operators:
6239
6239
  - :operator: raise
6240
6240
  :score: 1.4
6241
6241
  - :operator: success?
@@ -6244,48 +6244,48 @@
6244
6244
  :score: 1.3
6245
6245
  - :score: 2.8
6246
6246
  :name: Flog::Page#filename
6247
- :operators:
6247
+ :operators:
6248
6248
  - :operator: path
6249
6249
  :score: 1.5
6250
6250
  - :operator: basename
6251
6251
  :score: 1.3
6252
6252
  - :score: 2.8
6253
6253
  :name: Flog#flog_results
6254
- :operators:
6254
+ :operators:
6255
6255
  - :operator: metric_directory
6256
6256
  :score: 1.5
6257
6257
  - :operator: glob
6258
6258
  :score: 1.3
6259
6259
  - :score: 2.4
6260
6260
  :name: Flog#none
6261
- :operators:
6261
+ :operators:
6262
6262
  - :operator: private
6263
6263
  :score: 1.2
6264
6264
  - :operator: attr_reader
6265
6265
  :score: 1.2
6266
6266
  - :score: 1.3
6267
6267
  :name: Operator#none
6268
- :operators:
6268
+ :operators:
6269
6269
  - :operator: attr_accessor
6270
6270
  :score: 1.3
6271
6271
  - :score: 1.3
6272
6272
  :name: ScannedMethod#none
6273
- :operators:
6273
+ :operators:
6274
6274
  - :operator: attr_accessor
6275
6275
  :score: 1.3
6276
6276
  - :score: 1.2
6277
6277
  :name: Flog::Page#none
6278
- :operators:
6278
+ :operators:
6279
6279
  - :operator: attr_accessor
6280
6280
  :score: 1.2
6281
6281
  :highest_score: 44.1
6282
6282
  :score: 175.1
6283
6283
  - :average_score: 15.0
6284
6284
  :path: /lib/generators/rcov.rb
6285
- :scanned_methods:
6285
+ :scanned_methods:
6286
6286
  - :score: 73.6
6287
6287
  :name: Rcov#analyze
6288
- :operators:
6288
+ :operators:
6289
6289
  - :operator: assignment
6290
6290
  :score: 44.0
6291
6291
  - :operator: branch
@@ -6342,7 +6342,7 @@
6342
6342
  :score: 0.9
6343
6343
  - :score: 23.8
6344
6344
  :name: Rcov#emit
6345
- :operators:
6345
+ :operators:
6346
6346
  - :operator: "[]"
6347
6347
  :score: 5.3
6348
6348
  - :operator: metric_directory
@@ -6363,7 +6363,7 @@
6363
6363
  :score: 1.5
6364
6364
  - :score: 9.5
6365
6365
  :name: Rcov#to_h
6366
- :operators:
6366
+ :operators:
6367
6367
  - :operator: to_f
6368
6368
  :score: 3.4
6369
6369
  - :operator: round_to_tenths
@@ -6380,7 +6380,7 @@
6380
6380
  :score: 0.4
6381
6381
  - :score: 5.1
6382
6382
  :name: Rcov#verify_dependencies!
6383
- :operators:
6383
+ :operators:
6384
6384
  - :operator: raise
6385
6385
  :score: 3.0
6386
6386
  - :operator: branch
@@ -6389,7 +6389,7 @@
6389
6389
  :score: 1.3
6390
6390
  - :score: 3.0
6391
6391
  :name: Rcov#none
6392
- :operators:
6392
+ :operators:
6393
6393
  - :operator: "*"
6394
6394
  :score: 1.4
6395
6395
  - :operator: +
@@ -6398,27 +6398,27 @@
6398
6398
  :score: 0.4
6399
6399
  - :score: 2.8
6400
6400
  :name: Line#initialize
6401
- :operators:
6401
+ :operators:
6402
6402
  - :operator: assignment
6403
6403
  :score: 2.8
6404
6404
  - :score: 1.3
6405
6405
  :name: Line#none
6406
- :operators:
6406
+ :operators:
6407
6407
  - :operator: attr_accessor
6408
6408
  :score: 1.3
6409
6409
  - :score: 1.1
6410
6410
  :name: main#none
6411
- :operators:
6411
+ :operators:
6412
6412
  - :operator: require
6413
6413
  :score: 1.1
6414
6414
  :highest_score: 73.6
6415
6415
  :score: 120.1
6416
6416
  - :average_score: 7.7
6417
6417
  :path: /lib/base/generator.rb
6418
- :scanned_methods:
6418
+ :scanned_methods:
6419
6419
  - :score: 25.5
6420
6420
  :name: Generator#none
6421
- :operators:
6421
+ :operators:
6422
6422
  - :operator: define_method
6423
6423
  :score: 18.5
6424
6424
  - :operator: branch
@@ -6433,7 +6433,7 @@
6433
6433
  :score: 1.1
6434
6434
  - :score: 23.7
6435
6435
  :name: Generator#generate_report
6436
- :operators:
6436
+ :operators:
6437
6437
  - :operator: send
6438
6438
  :score: 12.6
6439
6439
  - :operator: to_sym
@@ -6454,7 +6454,7 @@
6454
6454
  :score: 1.2
6455
6455
  - :score: 6.6
6456
6456
  :name: Generator#metric_directory
6457
- :operators:
6457
+ :operators:
6458
6458
  - :operator: scratch_directory
6459
6459
  :score: 1.4
6460
6460
  - :operator: class
@@ -6467,7 +6467,7 @@
6467
6467
  :score: 1.2
6468
6468
  - :score: 6.3
6469
6469
  :name: Generator#initialize
6470
- :operators:
6470
+ :operators:
6471
6471
  - :operator: class
6472
6472
  :score: 1.4
6473
6473
  - :operator: assignment
@@ -6482,7 +6482,7 @@
6482
6482
  :score: 1.2
6483
6483
  - :score: 6.0
6484
6484
  :name: Generator#class_name
6485
- :operators:
6485
+ :operators:
6486
6486
  - :operator: to_s
6487
6487
  :score: 1.8
6488
6488
  - :operator: split
@@ -6493,7 +6493,7 @@
6493
6493
  :score: 1.2
6494
6494
  - :score: 5.5
6495
6495
  :name: Generator#create_output_dir_if_missing
6496
- :operators:
6496
+ :operators:
6497
6497
  - :operator: output_directory
6498
6498
  :score: 2.9
6499
6499
  - :operator: mkdir_p
@@ -6504,7 +6504,7 @@
6504
6504
  :score: 1.2
6505
6505
  - :score: 5.5
6506
6506
  :name: Generator#create_data_dir_if_missing
6507
- :operators:
6507
+ :operators:
6508
6508
  - :operator: data_directory
6509
6509
  :score: 2.9
6510
6510
  - :operator: mkdir_p
@@ -6515,7 +6515,7 @@
6515
6515
  :score: 1.2
6516
6516
  - :score: 5.5
6517
6517
  :name: Generator#create_metric_dir_if_missing
6518
- :operators:
6518
+ :operators:
6519
6519
  - :operator: metric_directory
6520
6520
  :score: 2.9
6521
6521
  - :operator: mkdir_p
@@ -6526,7 +6526,7 @@
6526
6526
  :score: 1.2
6527
6527
  - :score: 4.7
6528
6528
  :name: Generator#round_to_tenths
6529
- :operators:
6529
+ :operators:
6530
6530
  - :operator: "*"
6531
6531
  :score: 1.6
6532
6532
  - :operator: round
@@ -6537,27 +6537,27 @@
6537
6537
  :score: 0.5
6538
6538
  - :score: 1.2
6539
6539
  :name: Generator#emit
6540
- :operators:
6540
+ :operators:
6541
6541
  - :operator: raise
6542
6542
  :score: 1.2
6543
6543
  - :score: 1.2
6544
6544
  :name: Generator#to_graph
6545
- :operators:
6545
+ :operators:
6546
6546
  - :operator: raise
6547
6547
  :score: 1.2
6548
6548
  - :score: 1.2
6549
6549
  :name: Generator#analyze
6550
- :operators:
6550
+ :operators:
6551
6551
  - :operator: raise
6552
6552
  :score: 1.2
6553
6553
  :highest_score: 25.5
6554
6554
  :score: 93.0
6555
6555
  - :average_score: 7.6
6556
6556
  :path: /lib/base/configuration.rb
6557
- :scanned_methods:
6557
+ :scanned_methods:
6558
6558
  - :score: 36.0
6559
6559
  :name: Configuration#reset
6560
- :operators:
6560
+ :operators:
6561
6561
  - :operator: assignment
6562
6562
  :score: 29.9
6563
6563
  - :operator: join
@@ -6582,7 +6582,7 @@
6582
6582
  :score: 1.3
6583
6583
  - :score: 14.3
6584
6584
  :name: Configuration#add_class_methods_to_metric_fu
6585
- :operators:
6585
+ :operators:
6586
6586
  - :operator: module_eval
6587
6587
  :score: 7.5
6588
6588
  - :operator: assignment
@@ -6599,7 +6599,7 @@
6599
6599
  :score: 1.3
6600
6600
  - :score: 11.0
6601
6601
  :name: Configuration#add_attr_accessors_to_self
6602
- :operators:
6602
+ :operators:
6603
6603
  - :operator: send
6604
6604
  :score: 4.5
6605
6605
  - :operator: assignment
@@ -6616,7 +6616,7 @@
6616
6616
  :score: 1.3
6617
6617
  - :score: 8.9
6618
6618
  :name: Configuration#warn_about_deprecated_config_options
6619
- :operators:
6619
+ :operators:
6620
6620
  - :operator: raise
6621
6621
  :score: 5.6
6622
6622
  - :operator: branch
@@ -6625,7 +6625,7 @@
6625
6625
  :score: 1.6
6626
6626
  - :score: 5.2
6627
6627
  :name: Configuration#initialize
6628
- :operators:
6628
+ :operators:
6629
6629
  - :operator: warn_about_deprecated_config_options
6630
6630
  :score: 1.3
6631
6631
  - :operator: add_attr_accessors_to_self
@@ -6636,7 +6636,7 @@
6636
6636
  :score: 1.3
6637
6637
  - :score: 4.1
6638
6638
  :name: Configuration#set_metrics
6639
- :operators:
6639
+ :operators:
6640
6640
  - :operator: assignment
6641
6641
  :score: 2.8
6642
6642
  - :operator: +
@@ -6647,7 +6647,7 @@
6647
6647
  :score: 1.3
6648
6648
  - :score: 3.3
6649
6649
  :name: Configuration#set_code_dirs
6650
- :operators:
6650
+ :operators:
6651
6651
  - :operator: assignment
6652
6652
  :score: 2.8
6653
6653
  - :operator: rails?
@@ -6656,41 +6656,41 @@
6656
6656
  :score: 1.3
6657
6657
  - :score: 2.6
6658
6658
  :name: Configuration#run
6659
- :operators:
6659
+ :operators:
6660
6660
  - :operator: configuration
6661
6661
  :score: 1.3
6662
6662
  - :operator: yield
6663
6663
  :score: 1.3
6664
6664
  - :score: 1.8
6665
6665
  :name: Configuration#rails?
6666
- :operators:
6666
+ :operators:
6667
6667
  - :operator: exist?
6668
6668
  :score: 1.3
6669
6669
  - :operator: assignment
6670
6670
  :score: 1.3
6671
6671
  - :score: 1.3
6672
6672
  :name: Configuration#set_graphs
6673
- :operators:
6673
+ :operators:
6674
6674
  - :operator: assignment
6675
6675
  :score: 1.3
6676
6676
  - :score: 1.3
6677
6677
  :name: Configuration#is_cruise_control_rb?
6678
- :operators:
6678
+ :operators:
6679
6679
  - :operator: "[]"
6680
6680
  :score: 1.3
6681
6681
  - :score: 1.2
6682
6682
  :name: MetricFu#configuration
6683
- :operators:
6683
+ :operators:
6684
6684
  - :operator: new
6685
6685
  :score: 1.2
6686
6686
  :highest_score: 36.0
6687
6687
  :score: 91.0
6688
6688
  - :average_score: 6.0
6689
6689
  :path: /lib/generators/churn.rb
6690
- :scanned_methods:
6690
+ :scanned_methods:
6691
6691
  - :score: 20.1
6692
6692
  :name: Churn#initialize
6693
- :operators:
6693
+ :operators:
6694
6694
  - :operator: assignment
6695
6695
  :score: 5.5
6696
6696
  - :operator: churn
@@ -6713,7 +6713,7 @@
6713
6713
  :score: 0.4
6714
6714
  - :score: 15.4
6715
6715
  :name: Churn#analyze
6716
- :operators:
6716
+ :operators:
6717
6717
  - :operator: assignment
6718
6718
  :score: 8.2
6719
6719
  - :operator: "[]"
@@ -6732,7 +6732,7 @@
6732
6732
  :score: 1.3
6733
6733
  - :score: 8.8
6734
6734
  :name: Svn#get_logs
6735
- :operators:
6735
+ :operators:
6736
6736
  - :operator: date_range
6737
6737
  :score: 2.0
6738
6738
  - :operator: split
@@ -6749,7 +6749,7 @@
6749
6749
  :score: 1.4
6750
6750
  - :score: 7.8
6751
6751
  :name: Churn#parse_log_for_changes
6752
- :operators:
6752
+ :operators:
6753
6753
  - :operator: assignment
6754
6754
  :score: 5.5
6755
6755
  - :operator: branch
@@ -6764,7 +6764,7 @@
6764
6764
  :score: 0.8
6765
6765
  - :score: 7.0
6766
6766
  :name: Churn#emit
6767
- :operators:
6767
+ :operators:
6768
6768
  - :operator: assignment
6769
6769
  :score: 5.5
6770
6770
  - :operator: parse_log_for_changes
@@ -6777,7 +6777,7 @@
6777
6777
  :score: 1.3
6778
6778
  - :score: 6.9
6779
6779
  :name: Svn#date_range
6780
- :operators:
6780
+ :operators:
6781
6781
  - :operator: strftime
6782
6782
  :score: 3.2
6783
6783
  - :operator: now
@@ -6790,7 +6790,7 @@
6790
6790
  :score: 1.4
6791
6791
  - :score: 6.6
6792
6792
  :name: Git#get_logs
6793
- :operators:
6793
+ :operators:
6794
6794
  - :operator: date_range
6795
6795
  :score: 1.8
6796
6796
  - :operator: split
@@ -6805,7 +6805,7 @@
6805
6805
  :score: 1.4
6806
6806
  - :score: 3.9
6807
6807
  :name: Svn#clean_up_svn_line
6808
- :operators:
6808
+ :operators:
6809
6809
  - :operator: "[]"
6810
6810
  :score: 1.5
6811
6811
  - :operator: assignment
@@ -6818,7 +6818,7 @@
6818
6818
  :score: 0.4
6819
6819
  - :score: 3.8
6820
6820
  :name: Git#date_range
6821
- :operators:
6821
+ :operators:
6822
6822
  - :operator: parse
6823
6823
  :score: 1.6
6824
6824
  - :operator: strftime
@@ -6829,42 +6829,42 @@
6829
6829
  :score: 1.4
6830
6830
  - :score: 2.6
6831
6831
  :name: SourceControl#initialize
6832
- :operators:
6832
+ :operators:
6833
6833
  - :operator: assignment
6834
6834
  :score: 2.6
6835
6835
  - :score: 2.2
6836
6836
  :name: main#none
6837
- :operators:
6837
+ :operators:
6838
6838
  - :operator: require
6839
6839
  :score: 2.2
6840
6840
  - :score: 1.3
6841
6841
  :name: Svn#none
6842
- :operators:
6842
+ :operators:
6843
6843
  - :operator: private
6844
6844
  :score: 1.3
6845
6845
  - :score: 1.3
6846
6846
  :name: Churn#git?
6847
- :operators:
6847
+ :operators:
6848
6848
  - :operator: system
6849
6849
  :score: 1.3
6850
6850
  - :score: 1.3
6851
6851
  :name: Git#none
6852
- :operators:
6852
+ :operators:
6853
6853
  - :operator: private
6854
6854
  :score: 1.3
6855
6855
  - :score: 1.2
6856
6856
  :name: Churn#none
6857
- :operators:
6857
+ :operators:
6858
6858
  - :operator: private
6859
6859
  :score: 1.2
6860
6860
  :highest_score: 20.1
6861
6861
  :score: 90.3
6862
6862
  - :average_score: 15.5
6863
6863
  :path: /lib/graphs/reek_grapher.rb
6864
- :scanned_methods:
6864
+ :scanned_methods:
6865
6865
  - :score: 46.6
6866
6866
  :name: ReekGrapher#get_metrics
6867
- :operators:
6867
+ :operators:
6868
6868
  - :operator: "[]"
6869
6869
  :score: 23.5
6870
6870
  - :operator: reek_count
@@ -6887,7 +6887,7 @@
6887
6887
  :score: 0.9
6888
6888
  - :score: 26.1
6889
6889
  :name: ReekGrapher#graph!
6890
- :operators:
6890
+ :operators:
6891
6891
  - :operator: assignment
6892
6892
  :score: 15.9
6893
6893
  - :operator: output_directory
@@ -6924,27 +6924,27 @@
6924
6924
  :score: 1.3
6925
6925
  - :score: 2.6
6926
6926
  :name: ReekGrapher#initialize
6927
- :operators:
6927
+ :operators:
6928
6928
  - :operator: assignment
6929
6929
  :score: 2.6
6930
6930
  - :score: 1.2
6931
6931
  :name: ReekGrapher#none
6932
- :operators:
6932
+ :operators:
6933
6933
  - :operator: attr_accessor
6934
6934
  :score: 1.2
6935
6935
  - :score: 1.1
6936
6936
  :name: main#none
6937
- :operators:
6937
+ :operators:
6938
6938
  - :operator: require
6939
6939
  :score: 1.1
6940
6940
  :highest_score: 46.6
6941
6941
  :score: 77.5
6942
6942
  - :average_score: 35.5
6943
6943
  :path: /lib/generators/stats.rb
6944
- :scanned_methods:
6944
+ :scanned_methods:
6945
6945
  - :score: 68.5
6946
6946
  :name: Stats#analyze
6947
- :operators:
6947
+ :operators:
6948
6948
  - :operator: assignment
6949
6949
  :score: 31.5
6950
6950
  - :operator: "[]"
@@ -6991,7 +6991,7 @@
6991
6991
  :score: 1.2
6992
6992
  - :score: 2.6
6993
6993
  :name: Stats#emit
6994
- :operators:
6994
+ :operators:
6995
6995
  - :operator: metric_directory
6996
6996
  :score: 1.4
6997
6997
  - :operator: +
@@ -7000,10 +7000,10 @@
7000
7000
  :score: 71.1
7001
7001
  - :average_score: 9.8
7002
7002
  :path: /lib/graphs/flog_grapher.rb
7003
- :scanned_methods:
7003
+ :scanned_methods:
7004
7004
  - :score: 24.9
7005
7005
  :name: FlogGrapher#graph!
7006
- :operators:
7006
+ :operators:
7007
7007
  - :operator: assignment
7008
7008
  :score: 11.7
7009
7009
  - :operator: data
@@ -7038,7 +7038,7 @@
7038
7038
  :score: 1.3
7039
7039
  - :score: 18.0
7040
7040
  :name: FlogGrapher#get_metrics
7041
- :operators:
7041
+ :operators:
7042
7042
  - :operator: "[]"
7043
7043
  :score: 6.4
7044
7044
  - :operator: labels
@@ -7055,27 +7055,27 @@
7055
7055
  :score: 1.3
7056
7056
  - :score: 3.9
7057
7057
  :name: FlogGrapher#initialize
7058
- :operators:
7058
+ :operators:
7059
7059
  - :operator: assignment
7060
7060
  :score: 3.9
7061
7061
  - :score: 1.2
7062
7062
  :name: FlogGrapher#none
7063
- :operators:
7063
+ :operators:
7064
7064
  - :operator: attr_accessor
7065
7065
  :score: 1.2
7066
7066
  - :score: 1.1
7067
7067
  :name: main#none
7068
- :operators:
7068
+ :operators:
7069
7069
  - :operator: require
7070
7070
  :score: 1.1
7071
7071
  :highest_score: 24.9
7072
7072
  :score: 49.1
7073
7073
  - :average_score: 15.7
7074
7074
  :path: /lib/generators/reek.rb
7075
- :scanned_methods:
7075
+ :scanned_methods:
7076
7076
  - :score: 35.2
7077
7077
  :name: Reek#analyze
7078
- :operators:
7078
+ :operators:
7079
7079
  - :operator: assignment
7080
7080
  :score: 12.7
7081
7081
  - :operator: strip
@@ -7104,7 +7104,7 @@
7104
7104
  :score: 1.4
7105
7105
  - :score: 9.1
7106
7106
  :name: Reek#emit
7107
- :operators:
7107
+ :operators:
7108
7108
  - :operator: assignment
7109
7109
  :score: 3.7
7110
7110
  - :operator: "[]"
@@ -7119,7 +7119,7 @@
7119
7119
  :score: 1.2
7120
7120
  - :score: 2.8
7121
7121
  :name: Reek#verify_dependencies!
7122
- :operators:
7122
+ :operators:
7123
7123
  - :operator: raise
7124
7124
  :score: 1.3
7125
7125
  - :operator: success?
@@ -7130,10 +7130,10 @@
7130
7130
  :score: 47.1
7131
7131
  - :average_score: 9.4
7132
7132
  :path: /lib/base/graph.rb
7133
- :scanned_methods:
7133
+ :scanned_methods:
7134
7134
  - :score: 32.4
7135
7135
  :name: Graph#generate
7136
- :operators:
7136
+ :operators:
7137
7137
  - :operator: assignment
7138
7138
  :score: 7.4
7139
7139
  - :operator: "[]"
@@ -7166,7 +7166,7 @@
7166
7166
  :score: 0.5
7167
7167
  - :score: 10.6
7168
7168
  :name: Graph#add
7169
- :operators:
7169
+ :operators:
7170
7170
  - :operator: to_s
7171
7171
  :score: 1.7
7172
7172
  - :operator: const_get
@@ -7185,29 +7185,29 @@
7185
7185
  :score: 1.3
7186
7186
  - :score: 1.7
7187
7187
  :name: MetricFu#graph
7188
- :operators:
7188
+ :operators:
7189
7189
  - :operator: assignment
7190
7190
  :score: 1.2
7191
7191
  - :operator: new
7192
7192
  :score: 1.2
7193
7193
  - :score: 1.3
7194
7194
  :name: Graph#initialize
7195
- :operators:
7195
+ :operators:
7196
7196
  - :operator: assignment
7197
7197
  :score: 1.3
7198
7198
  - :score: 1.2
7199
7199
  :name: Graph#none
7200
- :operators:
7200
+ :operators:
7201
7201
  - :operator: attr_accessor
7202
7202
  :score: 1.2
7203
7203
  :highest_score: 32.4
7204
7204
  :score: 47.1
7205
7205
  - :average_score: 9.4
7206
7206
  :path: /lib/generators/flay.rb
7207
- :scanned_methods:
7207
+ :scanned_methods:
7208
7208
  - :score: 26.4
7209
7209
  :name: Flay#to_h
7210
- :operators:
7210
+ :operators:
7211
7211
  - :operator: assignment
7212
7212
  :score: 13.7
7213
7213
  - :operator: strip
@@ -7232,7 +7232,7 @@
7232
7232
  :score: 1.3
7233
7233
  - :score: 9.8
7234
7234
  :name: Flay#emit
7235
- :operators:
7235
+ :operators:
7236
7236
  - :operator: assignment
7237
7237
  :score: 4.0
7238
7238
  - :operator: "[]"
@@ -7247,7 +7247,7 @@
7247
7247
  :score: 1.3
7248
7248
  - :score: 6.6
7249
7249
  :name: Flay#analyze
7250
- :operators:
7250
+ :operators:
7251
7251
  - :operator: split
7252
7252
  :score: 2.9
7253
7253
  - :operator: assignment
@@ -7260,7 +7260,7 @@
7260
7260
  :score: 1.3
7261
7261
  - :score: 3.0
7262
7262
  :name: Flay#verify_dependencies!
7263
- :operators:
7263
+ :operators:
7264
7264
  - :operator: raise
7265
7265
  :score: 1.4
7266
7266
  - :operator: success?
@@ -7269,17 +7269,17 @@
7269
7269
  :score: 1.3
7270
7270
  - :score: 1.1
7271
7271
  :name: main#none
7272
- :operators:
7272
+ :operators:
7273
7273
  - :operator: require
7274
7274
  :score: 1.1
7275
7275
  :highest_score: 26.4
7276
7276
  :score: 46.9
7277
7277
  - :average_score: 4.2
7278
7278
  :path: /lib/base/base_template.rb
7279
- :scanned_methods:
7279
+ :scanned_methods:
7280
7280
  - :score: 8.6
7281
7281
  :name: Template#file_url
7282
- :operators:
7282
+ :operators:
7283
7283
  - :operator: branch
7284
7284
  :score: 2.7
7285
7285
  - :operator: configuration
@@ -7298,7 +7298,7 @@
7298
7298
  :score: 1.2
7299
7299
  - :score: 7.9
7300
7300
  :name: Template#erbify
7301
- :operators:
7301
+ :operators:
7302
7302
  - :operator: template
7303
7303
  :score: 1.4
7304
7304
  - :operator: new
@@ -7315,7 +7315,7 @@
7315
7315
  :score: 1.2
7316
7316
  - :score: 5.8
7317
7317
  :name: Template#inline_css
7318
- :operators:
7318
+ :operators:
7319
7319
  - :operator: this_directory
7320
7320
  :score: 1.6
7321
7321
  - :operator: join
@@ -7330,7 +7330,7 @@
7330
7330
  :score: 1.2
7331
7331
  - :score: 5.6
7332
7332
  :name: Template#template
7333
- :operators:
7333
+ :operators:
7334
7334
  - :operator: to_s
7335
7335
  :score: 1.6
7336
7336
  - :operator: +
@@ -7341,14 +7341,14 @@
7341
7341
  :score: 1.2
7342
7342
  - :score: 3.5
7343
7343
  :name: Template#link_content
7344
- :operators:
7344
+ :operators:
7345
7345
  - :operator: branch
7346
7346
  :score: 2.5
7347
7347
  - :operator: assignment
7348
7348
  :score: 2.4
7349
7349
  - :score: 3.4
7350
7350
  :name: Template#link_to_filename
7351
- :operators:
7351
+ :operators:
7352
7352
  - :operator: assignment
7353
7353
  :score: 2.4
7354
7354
  - :operator: link_content
@@ -7357,7 +7357,7 @@
7357
7357
  :score: 1.2
7358
7358
  - :score: 3.2
7359
7359
  :name: Template#cycle
7360
- :operators:
7360
+ :operators:
7361
7361
  - :operator: "%"
7362
7362
  :score: 1.4
7363
7363
  - :operator: branch
@@ -7368,38 +7368,38 @@
7368
7368
  :score: 0.4
7369
7369
  - :score: 2.6
7370
7370
  :name: Template#template_exists?
7371
- :operators:
7371
+ :operators:
7372
7372
  - :operator: template
7373
7373
  :score: 1.4
7374
7374
  - :operator: exist?
7375
7375
  :score: 1.2
7376
7376
  - :score: 2.6
7377
7377
  :name: Template#output_filename
7378
- :operators:
7378
+ :operators:
7379
7379
  - :operator: to_s
7380
7380
  :score: 1.4
7381
7381
  - :operator: +
7382
7382
  :score: 1.2
7383
7383
  - :score: 2.2
7384
7384
  :name: Template#none
7385
- :operators:
7385
+ :operators:
7386
7386
  - :operator: attr_accessor
7387
7387
  :score: 1.1
7388
7388
  - :operator: private
7389
7389
  :score: 1.1
7390
7390
  - :score: 1.2
7391
7391
  :name: Template#create_instance_var
7392
- :operators:
7392
+ :operators:
7393
7393
  - :operator: instance_variable_set
7394
7394
  :score: 1.2
7395
7395
  :highest_score: 8.6
7396
7396
  :score: 46.6
7397
7397
  - :average_score: 21.2
7398
7398
  :path: /lib/metric_fu.rb
7399
- :scanned_methods:
7399
+ :scanned_methods:
7400
7400
  - :score: 41.2
7401
7401
  :name: main#none
7402
- :operators:
7402
+ :operators:
7403
7403
  - :operator: join
7404
7404
  :score: 17.1
7405
7405
  - :operator: assignment
@@ -7416,17 +7416,17 @@
7416
7416
  :score: 1.1
7417
7417
  - :score: 1.1
7418
7418
  :name: MetricFu#none
7419
- :operators:
7419
+ :operators:
7420
7420
  - :operator: dirname
7421
7421
  :score: 1.1
7422
7422
  :highest_score: 41.2
7423
7423
  :score: 42.3
7424
7424
  - :average_score: 8.3
7425
7425
  :path: /lib/graphs/flay_grapher.rb
7426
- :scanned_methods:
7426
+ :scanned_methods:
7427
7427
  - :score: 22.5
7428
7428
  :name: FlayGrapher#graph!
7429
- :operators:
7429
+ :operators:
7430
7430
  - :operator: assignment
7431
7431
  :score: 11.7
7432
7432
  - :operator: output_directory
@@ -7459,7 +7459,7 @@
7459
7459
  :score: 1.3
7460
7460
  - :score: 13.9
7461
7461
  :name: FlayGrapher#get_metrics
7462
- :operators:
7462
+ :operators:
7463
7463
  - :operator: "[]"
7464
7464
  :score: 3.6
7465
7465
  - :operator: labels
@@ -7476,27 +7476,27 @@
7476
7476
  :score: 1.3
7477
7477
  - :score: 2.6
7478
7478
  :name: FlayGrapher#initialize
7479
- :operators:
7479
+ :operators:
7480
7480
  - :operator: assignment
7481
7481
  :score: 2.6
7482
7482
  - :score: 1.2
7483
7483
  :name: FlayGrapher#none
7484
- :operators:
7484
+ :operators:
7485
7485
  - :operator: attr_accessor
7486
7486
  :score: 1.2
7487
7487
  - :score: 1.1
7488
7488
  :name: main#none
7489
- :operators:
7489
+ :operators:
7490
7490
  - :operator: require
7491
7491
  :score: 1.1
7492
7492
  :highest_score: 22.5
7493
7493
  :score: 41.3
7494
7494
  - :average_score: 8.3
7495
7495
  :path: /lib/graphs/roodi_grapher.rb
7496
- :scanned_methods:
7496
+ :scanned_methods:
7497
7497
  - :score: 22.5
7498
7498
  :name: RoodiGrapher#graph!
7499
- :operators:
7499
+ :operators:
7500
7500
  - :operator: assignment
7501
7501
  :score: 11.7
7502
7502
  - :operator: output_directory
@@ -7529,7 +7529,7 @@
7529
7529
  :score: 1.3
7530
7530
  - :score: 13.9
7531
7531
  :name: RoodiGrapher#get_metrics
7532
- :operators:
7532
+ :operators:
7533
7533
  - :operator: "[]"
7534
7534
  :score: 3.6
7535
7535
  - :operator: labels
@@ -7544,27 +7544,27 @@
7544
7544
  :score: 1.3
7545
7545
  - :score: 2.6
7546
7546
  :name: RoodiGrapher#initialize
7547
- :operators:
7547
+ :operators:
7548
7548
  - :operator: assignment
7549
7549
  :score: 2.6
7550
7550
  - :score: 1.2
7551
7551
  :name: RoodiGrapher#none
7552
- :operators:
7552
+ :operators:
7553
7553
  - :operator: attr_accessor
7554
7554
  :score: 1.2
7555
7555
  - :score: 1.1
7556
7556
  :name: main#none
7557
- :operators:
7557
+ :operators:
7558
7558
  - :operator: require
7559
7559
  :score: 1.1
7560
7560
  :highest_score: 22.5
7561
7561
  :score: 41.3
7562
7562
  - :average_score: 7.9
7563
7563
  :path: /lib/graphs/rcov_grapher.rb
7564
- :scanned_methods:
7564
+ :scanned_methods:
7565
7565
  - :score: 22.5
7566
7566
  :name: RcovGrapher#graph!
7567
- :operators:
7567
+ :operators:
7568
7568
  - :operator: assignment
7569
7569
  :score: 11.7
7570
7570
  - :operator: output_directory
@@ -7597,7 +7597,7 @@
7597
7597
  :score: 1.3
7598
7598
  - :score: 12.0
7599
7599
  :name: RcovGrapher#get_metrics
7600
- :operators:
7600
+ :operators:
7601
7601
  - :operator: "[]"
7602
7602
  :score: 3.2
7603
7603
  - :operator: labels
@@ -7612,27 +7612,27 @@
7612
7612
  :score: 1.3
7613
7613
  - :score: 2.6
7614
7614
  :name: RcovGrapher#initialize
7615
- :operators:
7615
+ :operators:
7616
7616
  - :operator: assignment
7617
7617
  :score: 2.6
7618
7618
  - :score: 1.2
7619
7619
  :name: RcovGrapher#none
7620
- :operators:
7620
+ :operators:
7621
7621
  - :operator: attr_accessor
7622
7622
  :score: 1.2
7623
7623
  - :score: 1.1
7624
7624
  :name: main#none
7625
- :operators:
7625
+ :operators:
7626
7626
  - :operator: require
7627
7627
  :score: 1.1
7628
7628
  :highest_score: 22.5
7629
7629
  :score: 39.4
7630
7630
  - :average_score: 4.5
7631
7631
  :path: /lib/base/report.rb
7632
- :scanned_methods:
7632
+ :scanned_methods:
7633
7633
  - :score: 8.9
7634
7634
  :name: Report#add
7635
- :operators:
7635
+ :operators:
7636
7636
  - :operator: to_s
7637
7637
  :score: 1.7
7638
7638
  - :operator: report_hash
@@ -7649,7 +7649,7 @@
7649
7649
  :score: 1.3
7650
7650
  - :score: 7.9
7651
7651
  :name: Report#open_in_browser?
7652
- :operators:
7652
+ :operators:
7653
7653
  - :operator: configuration
7654
7654
  :score: 3.4
7655
7655
  - :operator: platform
@@ -7662,7 +7662,7 @@
7662
7662
  :score: 1.3
7663
7663
  - :score: 6.0
7664
7664
  :name: Report#save_templatized_report
7665
- :operators:
7665
+ :operators:
7666
7666
  - :operator: assignment
7667
7667
  :score: 2.6
7668
7668
  - :operator: template_class
@@ -7675,7 +7675,7 @@
7675
7675
  :score: 1.3
7676
7676
  - :score: 4.0
7677
7677
  :name: Report#save_output
7678
- :operators:
7678
+ :operators:
7679
7679
  - :operator: assignment
7680
7680
  :score: 2.7
7681
7681
  - :operator: puts
@@ -7686,7 +7686,7 @@
7686
7686
  :score: 1.3
7687
7687
  - :score: 3.0
7688
7688
  :name: Report#show_in_browser
7689
- :operators:
7689
+ :operators:
7690
7690
  - :operator: system
7691
7691
  :score: 1.4
7692
7692
  - :operator: open_in_browser?
@@ -7695,31 +7695,31 @@
7695
7695
  :score: 1.3
7696
7696
  - :score: 2.8
7697
7697
  :name: Report#to_yaml
7698
- :operators:
7698
+ :operators:
7699
7699
  - :operator: report_hash
7700
7700
  :score: 1.5
7701
7701
  - :operator: to_yaml
7702
7702
  :score: 1.3
7703
7703
  - :score: 1.7
7704
7704
  :name: MetricFu#report
7705
- :operators:
7705
+ :operators:
7706
7706
  - :operator: assignment
7707
7707
  :score: 1.2
7708
7708
  - :operator: new
7709
7709
  :score: 1.2
7710
7710
  - :score: 1.3
7711
7711
  :name: Report#report_hash
7712
- :operators:
7712
+ :operators:
7713
7713
  - :operator: assignment
7714
7714
  :score: 1.3
7715
7715
  :highest_score: 8.9
7716
7716
  :score: 35.6
7717
7717
  - :average_score: 16.8
7718
7718
  :path: /lib/templates/awesome/awesome_template.rb
7719
- :scanned_methods:
7719
+ :scanned_methods:
7720
7720
  - :score: 32.3
7721
7721
  :name: AwesomeTemplate#write
7722
- :operators:
7722
+ :operators:
7723
7723
  - :operator: assignment
7724
7724
  :score: 13.8
7725
7725
  - :operator: erbify
@@ -7748,17 +7748,17 @@
7748
7748
  :score: 1.2
7749
7749
  - :score: 1.2
7750
7750
  :name: AwesomeTemplate#this_directory
7751
- :operators:
7751
+ :operators:
7752
7752
  - :operator: dirname
7753
7753
  :score: 1.2
7754
7754
  :highest_score: 32.3
7755
7755
  :score: 33.5
7756
7756
  - :average_score: 10.7
7757
7757
  :path: /lib/generators/roodi.rb
7758
- :scanned_methods:
7758
+ :scanned_methods:
7759
7759
  - :score: 20.4
7760
7760
  :name: Roodi#analyze
7761
- :operators:
7761
+ :operators:
7762
7762
  - :operator: assignment
7763
7763
  :score: 13.1
7764
7764
  - :operator: split
@@ -7783,7 +7783,7 @@
7783
7783
  :score: 0.4
7784
7784
  - :score: 9.1
7785
7785
  :name: Roodi#emit
7786
- :operators:
7786
+ :operators:
7787
7787
  - :operator: assignment
7788
7788
  :score: 3.7
7789
7789
  - :operator: "[]"
@@ -7798,7 +7798,7 @@
7798
7798
  :score: 1.2
7799
7799
  - :score: 2.8
7800
7800
  :name: Roodi#verify_dependencies!
7801
- :operators:
7801
+ :operators:
7802
7802
  - :operator: raise
7803
7803
  :score: 1.3
7804
7804
  - :operator: success?
@@ -7809,10 +7809,10 @@
7809
7809
  :score: 32.2
7810
7810
  - :average_score: 12.7
7811
7811
  :path: /lib/templates/standard/standard_template.rb
7812
- :scanned_methods:
7812
+ :scanned_methods:
7813
7813
  - :score: 24.2
7814
7814
  :name: StandardTemplate#write
7815
- :operators:
7815
+ :operators:
7816
7816
  - :operator: assignment
7817
7817
  :score: 9.7
7818
7818
  - :operator: report
@@ -7835,7 +7835,7 @@
7835
7835
  :score: 1.2
7836
7836
  - :score: 1.2
7837
7837
  :name: StandardTemplate#this_directory
7838
- :operators:
7838
+ :operators:
7839
7839
  - :operator: dirname
7840
7840
  :score: 1.2
7841
7841
  :highest_score: 24.2
@@ -7910,13 +7910,13 @@
7910
7910
  :name: Total
7911
7911
  :loc: 23373
7912
7912
  :code_to_test_ratio: 0.5
7913
- :rails_best_practices:
7914
- :problems:
7913
+ :rails_best_practices:
7914
+ :problems:
7915
7915
  - :line: "17"
7916
7916
  :file: ./app/views/admin/testimonials/_form.html.erb
7917
7917
  :problem: replace instance variable with local variable
7918
7918
  - :line: "24,45,68,85"
7919
7919
  :file: ./app/controllers/admin/campaigns_controller.rb
7920
7920
  :problem: use before_filter for show,edit,update,destroy
7921
- :total:
7921
+ :total:
7922
7922
  - Found 2 errors.