lib/base/configuration.rb in metric_fu-1.5.1 vs lib/base/configuration.rb in metric_fu-2.0.0
- old
+ new
@@ -4,11 +4,12 @@
#
# These are metrics which have been developed for the system. Of
# course, in order to use these metrics, their respective gems must
# be installed on the system.
AVAILABLE_METRICS = [:churn, :flog, :flay, :reek,
- :roodi, :saikuro, :rcov]
+ :roodi, :saikuro, :rcov,
+ :hotspots]
AVAILABLE_GRAPHS = [:flog, :flay, :reek, :roodi, :rcov, :rails_best_practices]
AVAILABLE_GRAPH_ENGINES = [:gchart, :bluff]
# The @@configuration class variable holds a global type configuration
@@ -137,10 +138,11 @@
"--rails",
"--exclude /gems/,/Library/,/usr/,spec"],
:external => nil
}
@rails_best_practices = {}
+ @hotspots = {}
@file_globs_to_ignore = []
@graph_engine = :bluff # can be :bluff or :gchart
end
@@ -157,10 +159,10 @@
def set_metrics
if rails?
@metrics = MetricFu::AVAILABLE_METRICS + [:stats, :rails_best_practices]
else
@metrics = MetricFu::AVAILABLE_METRICS
- end
+ end
end
def set_graphs
if rails?
@graphs = MetricFu::AVAILABLE_GRAPHS + [:stats]