edouard-metric_fu 1.0.4.3 → 1.0.4.4
Sign up to get free protection for your applications and to get access to all the features.
data/lib/base/configuration.rb
CHANGED
@@ -158,6 +158,10 @@ module MetricFu
|
|
158
158
|
relative_font_path = [File.dirname(__FILE__), '..', '..', 'vendor', '_fonts', 'monaco.ttf']
|
159
159
|
@graph_font = File.expand_path(File.join(relative_font_path))
|
160
160
|
@graph_size = "1000x400"
|
161
|
+
@graph_title_font_size = 12
|
162
|
+
@graph_legend_box_size = 12
|
163
|
+
@graph_legend_font_size = 10
|
164
|
+
@graph_marker_font_size = 10
|
161
165
|
|
162
166
|
end
|
163
167
|
|
data/lib/graphs/flay_grapher.rb
CHANGED
@@ -22,6 +22,10 @@ module MetricFu
|
|
22
22
|
g.font = MetricFu.graph_font
|
23
23
|
g.data('flay', self.flay_score)
|
24
24
|
g.labels = self.labels
|
25
|
+
g.title_font_size = MetricFu.graph_title_font_size
|
26
|
+
g.legend_box_size = MetricFu.graph_legend_box_size
|
27
|
+
g.legend_font_size = MetricFu.graph_legend_font_size
|
28
|
+
g.marker_font_size = MetricFu.graph_marker_font_size
|
25
29
|
g.write(File.join(MetricFu.output_directory, 'flay.png'))
|
26
30
|
end
|
27
31
|
|
data/lib/graphs/flog_grapher.rb
CHANGED
@@ -25,6 +25,10 @@ module MetricFu
|
|
25
25
|
g.data('flog total', self.flog_total)
|
26
26
|
g.data('flog average', self.flog_average)
|
27
27
|
g.labels = self.labels
|
28
|
+
g.title_font_size = MetricFu.graph_title_font_size
|
29
|
+
g.legend_box_size = MetricFu.graph_legend_box_size
|
30
|
+
g.legend_font_size = MetricFu.graph_legend_font_size
|
31
|
+
g.marker_font_size = MetricFu.graph_marker_font_size
|
28
32
|
g.write(File.join(MetricFu.output_directory, 'flog.png'))
|
29
33
|
end
|
30
34
|
|
data/lib/graphs/rcov_grapher.rb
CHANGED
@@ -22,6 +22,10 @@ module MetricFu
|
|
22
22
|
g.font = MetricFu.graph_font
|
23
23
|
g.data('rcov', self.rcov_percent)
|
24
24
|
g.labels = self.labels
|
25
|
+
g.title_font_size = MetricFu.graph_title_font_size
|
26
|
+
g.legend_box_size = MetricFu.graph_legend_box_size
|
27
|
+
g.legend_font_size = MetricFu.graph_legend_font_size
|
28
|
+
g.marker_font_size = MetricFu.graph_marker_font_size
|
25
29
|
g.write(File.join(MetricFu.output_directory, 'rcov.png'))
|
26
30
|
end
|
27
31
|
|
data/lib/graphs/reek_grapher.rb
CHANGED
@@ -32,6 +32,10 @@ module MetricFu
|
|
32
32
|
g.data(type, count)
|
33
33
|
end
|
34
34
|
g.labels = self.labels
|
35
|
+
g.title_font_size = MetricFu.graph_title_font_size
|
36
|
+
g.legend_box_size = MetricFu.graph_legend_box_size
|
37
|
+
g.legend_font_size = MetricFu.graph_legend_font_size
|
38
|
+
g.marker_font_size = MetricFu.graph_marker_font_size
|
35
39
|
g.write(File.join(MetricFu.output_directory, 'reek.png'))
|
36
40
|
end
|
37
41
|
|
data/lib/graphs/roodi_grapher.rb
CHANGED
@@ -22,6 +22,10 @@ module MetricFu
|
|
22
22
|
g.font = MetricFu.graph_font
|
23
23
|
g.data('roodi', self.roodi_count)
|
24
24
|
g.labels = self.labels
|
25
|
+
g.title_font_size = MetricFu.graph_title_font_size
|
26
|
+
g.legend_box_size = MetricFu.graph_legend_box_size
|
27
|
+
g.legend_font_size = MetricFu.graph_legend_font_size
|
28
|
+
g.marker_font_size = MetricFu.graph_marker_font_size
|
25
29
|
g.write(File.join(MetricFu.output_directory, 'roodi.png'))
|
26
30
|
end
|
27
31
|
|