Sha256: 36d52b5a78fc724becbfa420271aa11ca757a2ce2a328aa47f81a2b369d64f81
Contents?: true
Size: 1.63 KB
Versions: 3
Compression:
Stored size: 1.63 KB
Contents
#!/usr/bin/env ruby # 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 # 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 # # 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
metric_fu-4.6.0 | .metrics |
metric_fu-4.5.2 | .metrics |
metric_fu-4.5.1 | .metrics |