forked from metricfu/metric_fu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.metrics
executable file
·68 lines (66 loc) · 1.79 KB
/
.metrics
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
#!/usr/bin/env ruby
# Example Configuration
#
# MetricFu::Configuration.run do |config|
#
# # Configure Metrics
#
# # To configure individual metrics...
#
# config.configure_metric(:rcov) do |rcov|
# rcov.coverage_file = MetricFu.run_path.join("coverage/rcov/rcov.txt")
# rcov.enable
# rcov.activate
# end
#
# config.configure_metric(:cane) do |cane|
# cane.enabled = true
# cane.abc_max = 15
# cane.line_length = 80
# cane.no_doc = 'y'
# cane.no_readme = 'y'
# end
#
# config.configure_metric(:churn) do |churn|
# churn.enabled = true
# churn.ignore_files = 'HISTORY.md, TODO.md'
# churn.start_date = '6 months ago'
# end
#
# # Or, to configure a group of metrics...
# config.configure_metrics.each do |metric|
# if [:churn, :flay, :flog].include?(metric.name)
# metric.enabled = true
# else
# metric.enabled = false
# end
# end
#
#
# # Configure Formatters
#
# # By default, metric_fu will use the built-in html formatter
# # to generate HTML reports for each metric with pretty graphs.
# # To configure different formatter(s) or output ...
#
# config.configure_formatter(:html)
# config.configure_formatter(:yaml, "customreport.yml")
# config.configure_formatter(MyCustomFormatter)
#
# # MetricFu will attempt to require a custom formatter by
# # fully qualified name based on ruby search path,
# # but you may find that you need to add a require above.
#
# # For instance, to require a formatter in your app's lib directory, add the
# # following line to the top of this file.
# # require './lib/my_custom_formatter.rb'
#
#
# # Configure Graph Engine
#
# # By default, metric_fu uses the bluff graph engine.
# # To configure a different graph engine...
#
# # config.configure_graph_engine(:gchart)
#
# end