-
Notifications
You must be signed in to change notification settings - Fork 0
/
.metrics
65 lines (62 loc) · 1.78 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
#!/usr/bin/env ruby
# For testing that this file gets loaded
$metric_file_loaded = true
# Example Configuration
#
MetricFu::Configuration.run do |config|
#
# Configure Metrics
#
# To configure individual metrics...
#
# config.configure_metric(:rcov) do |rcov|
# rcov.enabled = true
# coverage_file = File.expand_path("coverage/rcov/rcov.txt", Dir.pwd)
# rcov.external = coverage_file
# end
#
config.configure_metric(:cane) do |cane|
cane.enabled = true
cane.abc_max = 15 # assignments, branches, conditionals
cane.line_length = 140
# cane.no_doc = 'y' # accept classes with no doc
# cane.no_readme = 'y' # accept project without README
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