-
Notifications
You must be signed in to change notification settings - Fork 10
/
.metrics
50 lines (41 loc) · 1.07 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
# To configure individual metrics...
MetricFu::Configuration.run do |config|
# Use Highcharts, it's prettier
config.configure_graph_engine(:highcharts)
# Cane
config.configure_metric(:cane) do |cane|
cane.line_length = 9999
end
# Flay
config.configure_metric(:flay) do |flay|
flay.dirs_to_flay = ['.']
end
# Flog
config.configure_metric(:flog) do |flog|
flog.dirs_to_flog = ['.']
end
# Saikuro
config.configure_metric(:saikuro) do |saikuro|
saikuro.input_directory = ['.']
end
# Reek
config.configure_metric(:reek) do |reek|
reek.config_file_pattern = 'reek.yml'
end
# Roodi
config.configure_metric(:roodi) do |roodi|
roodi.dirs_to_roodi = ['.']
end
# Stats
config.configure_metric(:stats) do |stats|
stats.additional_test_directories = [
{
glob_pattern: 'test/**/*.rb',
file_pattern: ''
}
]
stats.additional_app_directories = Dir.glob('*').
select { |f| File.directory?(f) && f != 'test' }.
map { |f| { glob_pattern: "#{f}/**/*.rb", file_pattern: '' } }
end
end